OKLCH Studio · Tailwind v3 → v4

Tailwind orange-700: v3 #c2410c vs v4 oklch(0.553 0.195 38.4)

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

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

Tailwind v3#c2410c
Tailwind v4oklch(0.553 0.195 38.4)
Tailwind orange-700 values in v3 and v4
v3 hex#c2410c
v3 as oklch()oklch(0.553 0.174 38.4)
v4 oklch()oklch(0.553 0.195 38.4)
v4 hex#CA3500
ΔE-OK (×100)2.11
ΔL (v4 − v3)0
ΔC (v4 − v3)0.021
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #c2410c;

// tailwind.config.js (v3)
colors.orange[700] // #c2410c

Tailwind v4 @theme token

@theme {
  --color-orange-700: oklch(0.553 0.195 38.4);
}

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

Keep the v3 colour in v4

@theme {
  --color-orange-700: #c2410c;
}

Related

← All Tailwind v3 to v4 colors