OKLCH Studio · Tailwind v3 → v4

Tailwind fuchsia-200: v3 #f5d0fe vs v4 oklch(0.903 0.076 319.6)

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

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

Tailwind v3#f5d0fe
Tailwind v4oklch(0.903 0.076 319.6)
Tailwind fuchsia-200 values in v3 and v4
v3 hex#f5d0fe
v3 as oklch()oklch(0.903 0.073 319.6)
v4 oklch()oklch(0.903 0.076 319.6)
v4 hex#F6CFFF
ΔE-OK (×100)0.28
ΔL (v4 − v3)0
ΔC (v4 − v3)0.003
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #f5d0fe;

// tailwind.config.js (v3)
colors.fuchsia[200] // #f5d0fe

Tailwind v4 @theme token

@theme {
  --color-fuchsia-200: oklch(0.903 0.076 319.6);
}

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

Keep the v3 colour in v4

@theme {
  --color-fuchsia-200: #f5d0fe;
}

Related

← All Tailwind v3 to v4 colors