OKLCH Studio · Tailwind v3 → v4

Tailwind amber-800: v3 #92400e vs v4 oklch(0.473 0.137 46.2)

Subtle shiftIn v4, amber-800 is more saturated than in v3 (ΔL 0.000, ΔC +0.012, ΔH 0.0°).

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

Tailwind v3#92400e
Tailwind v4oklch(0.473 0.137 46.2)
Tailwind amber-800 values in v3 and v4
v3 hex#92400e
v3 as oklch()oklch(0.473 0.125 46.2)
v4 oklch()oklch(0.473 0.137 46.2)
v4 hex#973C00
ΔE-OK (×100)1.23
ΔL (v4 − v3)0
ΔC (v4 − v3)0.012
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #92400e;

// tailwind.config.js (v3)
colors.amber[800] // #92400e

Tailwind v4 @theme token

@theme {
  --color-amber-800: oklch(0.473 0.137 46.2);
}

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

Keep the v3 colour in v4

@theme {
  --color-amber-800: #92400e;
}

Related

← All Tailwind v3 to v4 colors