OKLCH Studio · Tailwind v3 → v4

Tailwind emerald-600: v3 #059669 vs v4 oklch(0.596 0.145 163.2)

Subtle shiftIn v4, emerald-600 is more saturated than in v3 (ΔL 0.000, ΔC +0.018, ΔH 0.0°).

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

Tailwind v3#059669
Tailwind v4oklch(0.596 0.145 163.2)
Tailwind emerald-600 values in v3 and v4
v3 hex#059669
v3 as oklch()oklch(0.596 0.127 163.2)
v4 oklch()oklch(0.596 0.145 163.2)
v4 hex#009966
ΔE-OK (×100)1.76
ΔL (v4 − v3)0
ΔC (v4 − v3)0.018
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #059669;

// tailwind.config.js (v3)
colors.emerald[600] // #059669

Tailwind v4 @theme token

@theme {
  --color-emerald-600: oklch(0.596 0.145 163.2);
}

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

Keep the v3 colour in v4

@theme {
  --color-emerald-600: #059669;
}

Related

← All Tailwind v3 to v4 colors