OKLCH Studio · Tailwind v3 → v4

Tailwind orange-800: v3 #9a3412 vs v4 oklch(0.470 0.157 37.3)

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

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

Tailwind v3#9a3412
Tailwind v4oklch(0.470 0.157 37.3)
Tailwind orange-800 values in v3 and v4
v3 hex#9a3412
v3 as oklch()oklch(0.470 0.143 37.3)
v4 oklch()oklch(0.470 0.157 37.3)
v4 hex#9F2D00
ΔE-OK (×100)1.40
ΔL (v4 − v3)0
ΔC (v4 − v3)0.014
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #9a3412;

// tailwind.config.js (v3)
colors.orange[800] // #9a3412

Tailwind v4 @theme token

@theme {
  --color-orange-800: oklch(0.470 0.157 37.3);
}

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

Keep the v3 colour in v4

@theme {
  --color-orange-800: #9a3412;
}

Related

← All Tailwind v3 to v4 colors