OKLCH Studio · Tailwind v3 → v4

Tailwind yellow-600: v3 #ca8a04 vs v4 oklch(0.681 0.162 75.8)

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

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

Tailwind v3#ca8a04
Tailwind v4oklch(0.681 0.162 75.8)
Tailwind yellow-600 values in v3 and v4
v3 hex#ca8a04
v3 as oklch()oklch(0.681 0.142 75.8)
v4 oklch()oklch(0.681 0.162 75.8)
v4 hex#D08700
ΔE-OK (×100)1.97
ΔL (v4 − v3)0
ΔC (v4 − v3)0.02
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #ca8a04;

// tailwind.config.js (v3)
colors.yellow[600] // #ca8a04

Tailwind v4 @theme token

@theme {
  --color-yellow-600: oklch(0.681 0.162 75.8);
}

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

Keep the v3 colour in v4

@theme {
  --color-yellow-600: #ca8a04;
}

Related

← All Tailwind v3 to v4 colors