OKLCH Studio · Tailwind v3 → v4

Tailwind amber-600: v3 #d97706 vs v4 oklch(0.666 0.179 58.3)

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

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

Tailwind v3#d97706
Tailwind v4oklch(0.666 0.179 58.3)
Tailwind amber-600 values in v3 and v4
v3 hex#d97706
v3 as oklch()oklch(0.666 0.157 58.3)
v4 oklch()oklch(0.666 0.179 58.3)
v4 hex#E17100
ΔE-OK (×100)2.16
ΔL (v4 − v3)0
ΔC (v4 − v3)0.022
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #d97706;

// tailwind.config.js (v3)
colors.amber[600] // #d97706

Tailwind v4 @theme token

@theme {
  --color-amber-600: oklch(0.666 0.179 58.3);
}

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

Keep the v3 colour in v4

@theme {
  --color-amber-600: #d97706;
}

Related

← All Tailwind v3 to v4 colors