OKLCH Studio · Tailwind v3 → v4

Tailwind fuchsia-700: v3 #a21caf vs v4 oklch(0.518 0.253 323.9)

ChangedIn v4, fuchsia-700 is more saturated than in v3 (ΔL 0.000, ΔC +0.027, ΔH 0.0°).

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

Tailwind v3#a21caf
Tailwind v4oklch(0.518 0.253 323.9)
Tailwind fuchsia-700 values in v3 and v4
v3 hex#a21caf
v3 as oklch()oklch(0.518 0.226 323.9)
v4 oklch()oklch(0.518 0.253 323.9)
v4 hex#A800B7
ΔE-OK (×100)2.72
ΔL (v4 − v3)0
ΔC (v4 − v3)0.027
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #a21caf;

// tailwind.config.js (v3)
colors.fuchsia[700] // #a21caf

Tailwind v4 @theme token

@theme {
  --color-fuchsia-700: oklch(0.518 0.253 323.9);
}

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

Keep the v3 colour in v4

@theme {
  --color-fuchsia-700: #a21caf;
}

Related

← All Tailwind v3 to v4 colors