OKLCH Studio · Tailwind v3 → v4

Tailwind orange-100: v3 #ffedd5 vs v4 oklch(0.954 0.038 75.2)

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

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

Tailwind v3#ffedd5
Tailwind v4oklch(0.954 0.038 75.2)
Tailwind orange-100 values in v3 and v4
v3 hex#ffedd5
v3 as oklch()oklch(0.954 0.037 75.2)
v4 oklch()oklch(0.954 0.038 75.2)
v4 hex#FFEDD4
ΔE-OK (×100)0.09
ΔL (v4 − v3)0
ΔC (v4 − v3)0.001
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #ffedd5;

// tailwind.config.js (v3)
colors.orange[100] // #ffedd5

Tailwind v4 @theme token

@theme {
  --color-orange-100: oklch(0.954 0.038 75.2);
}

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

Keep the v3 colour in v4

@theme {
  --color-orange-100: #ffedd5;
}

Related

← All Tailwind v3 to v4 colors