OKLCH Studio · Tailwind v3 → v4

Tailwind amber-400: v3 #fbbf24 vs v4 oklch(0.828 0.189 84.4)

ChangedIn v4, amber-400 is darker and more saturated than in v3 (ΔL -0.009, ΔC +0.025, ΔH 0.0°).

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

Tailwind v3#fbbf24
Tailwind v4oklch(0.828 0.189 84.4)
Tailwind amber-400 values in v3 and v4
v3 hex#fbbf24
v3 as oklch()oklch(0.837 0.164 84.4)
v4 oklch()oklch(0.828 0.189 84.4)
v4 hex#FFB900
ΔE-OK (×100)2.61
ΔL (v4 − v3)-0.009
ΔC (v4 − v3)0.025
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #fbbf24;

// tailwind.config.js (v3)
colors.amber[400] // #fbbf24

Tailwind v4 @theme token

@theme {
  --color-amber-400: oklch(0.828 0.189 84.4);
}

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

Keep the v3 colour in v4

@theme {
  --color-amber-400: #fbbf24;
}

Related

← All Tailwind v3 to v4 colors