OKLCH Studio · Tailwind v3 → v4

Tailwind orange-600: v3 #ea580c vs v4 oklch(0.646 0.222 41.1)

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

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

Tailwind v3#ea580c
Tailwind v4oklch(0.646 0.222 41.1)
Tailwind orange-600 values in v3 and v4
v3 hex#ea580c
v3 as oklch()oklch(0.646 0.194 41.1)
v4 oklch()oklch(0.646 0.222 41.1)
v4 hex#F54900
ΔE-OK (×100)2.77
ΔL (v4 − v3)0
ΔC (v4 − v3)0.028
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #ea580c;

// tailwind.config.js (v3)
colors.orange[600] // #ea580c

Tailwind v4 @theme token

@theme {
  --color-orange-600: oklch(0.646 0.222 41.1);
}

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

Keep the v3 colour in v4

@theme {
  --color-orange-600: #ea580c;
}

Related

← All Tailwind v3 to v4 colors