OKLCH Studio · Tailwind v3 → v4

Tailwind orange-200: v3 #fed7aa vs v4 oklch(0.901 0.076 70.7)

Unchangedorange-200 is effectively the same colour in v3 and v4 (ΔE-OK 0.31).

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

Tailwind v3#fed7aa
Tailwind v4oklch(0.901 0.076 70.7)
Tailwind orange-200 values in v3 and v4
v3 hex#fed7aa
v3 as oklch()oklch(0.901 0.073 70.7)
v4 oklch()oklch(0.901 0.076 70.7)
v4 hex#FFD6A7
ΔE-OK (×100)0.31
ΔL (v4 − v3)0
ΔC (v4 − v3)0.003
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #fed7aa;

// tailwind.config.js (v3)
colors.orange[200] // #fed7aa

Tailwind v4 @theme token

@theme {
  --color-orange-200: oklch(0.901 0.076 70.7);
}

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

Keep the v3 colour in v4

@theme {
  --color-orange-200: #fed7aa;
}

Related

← All Tailwind v3 to v4 colors