OKLCH Studio · Tailwind v3 → v4

Tailwind red-200: v3 #fecaca vs v4 oklch(0.885 0.062 18.3)

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

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

Tailwind v3#fecaca
Tailwind v4oklch(0.885 0.062 18.3)
Tailwind red-200 values in v3 and v4
v3 hex#fecaca
v3 as oklch()oklch(0.885 0.059 18.3)
v4 oklch()oklch(0.885 0.062 18.3)
v4 hex#FFC9C9
ΔE-OK (×100)0.28
ΔL (v4 − v3)0
ΔC (v4 − v3)0.003
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #fecaca;

// tailwind.config.js (v3)
colors.red[200] // #fecaca

Tailwind v4 @theme token

@theme {
  --color-red-200: oklch(0.885 0.062 18.3);
}

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

Keep the v3 colour in v4

@theme {
  --color-red-200: #fecaca;
}

Related

← All Tailwind v3 to v4 colors