OKLCH Studio · Tailwind v3 → v4

Tailwind amber-500: v3 #f59e0b vs v4 oklch(0.769 0.188 70.1)

ChangedIn v4, amber-500 is more saturated than in v3 (ΔL 0.000, ΔC +0.023, ΔH 0.0°).

The v4 value is outside the sRGB gamut, so #FE9A00 is a clipped sRGB approximation; wide-gamut displays can show it more vivid.

Tailwind v3#f59e0b
Tailwind v4oklch(0.769 0.188 70.1)
Tailwind amber-500 values in v3 and v4
v3 hex#f59e0b
v3 as oklch()oklch(0.769 0.165 70.1)
v4 oklch()oklch(0.769 0.188 70.1)
v4 hex#FE9A00
ΔE-OK (×100)2.33
ΔL (v4 − v3)0
ΔC (v4 − v3)0.023
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #f59e0b;

// tailwind.config.js (v3)
colors.amber[500] // #f59e0b

Tailwind v4 @theme token

@theme {
  --color-amber-500: oklch(0.769 0.188 70.1);
}

.example {
  color: var(--color-amber-500);
}

Keep the v3 colour in v4

@theme {
  --color-amber-500: #f59e0b;
}

Related

← All Tailwind v3 to v4 colors