OKLCH Studio · Tailwind v3 → v4

Tailwind indigo-50: v3 #eef2ff vs v4 oklch(0.962 0.018 272.3)

Unchangedindigo-50 is effectively the same colour in v3 and v4 (ΔE-OK 0.01).

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

Tailwind v3#eef2ff
Tailwind v4oklch(0.962 0.018 272.3)
Tailwind indigo-50 values in v3 and v4
v3 hex#eef2ff
v3 as oklch()oklch(0.962 0.018 272.3)
v4 oklch()oklch(0.962 0.018 272.3)
v4 hex#EEF2FF
ΔE-OK (×100)0.01
ΔL (v4 − v3)0
ΔC (v4 − v3)0
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #eef2ff;

// tailwind.config.js (v3)
colors.indigo[50] // #eef2ff

Tailwind v4 @theme token

@theme {
  --color-indigo-50: oklch(0.962 0.018 272.3);
}

.example {
  color: var(--color-indigo-50);
}

Keep the v3 colour in v4

@theme {
  --color-indigo-50: #eef2ff;
}

Related

← All Tailwind v3 to v4 colors