OKLCH Studio · Tailwind v3 → v4

Tailwind lime-400: v3 #a3e635 vs v4 oklch(0.841 0.238 128.8)

ChangedIn v4, lime-400 is darker and more saturated than in v3 (ΔL -0.008, ΔC +0.031, ΔH 0.0°).

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

Tailwind v3#a3e635
Tailwind v4oklch(0.841 0.238 128.8)
Tailwind lime-400 values in v3 and v4
v3 hex#a3e635
v3 as oklch()oklch(0.849 0.207 128.8)
v4 oklch()oklch(0.841 0.238 128.8)
v4 hex#9AE600
ΔE-OK (×100)3.18
ΔL (v4 − v3)-0.008
ΔC (v4 − v3)0.031
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #a3e635;

// tailwind.config.js (v3)
colors.lime[400] // #a3e635

Tailwind v4 @theme token

@theme {
  --color-lime-400: oklch(0.841 0.238 128.8);
}

.example {
  color: var(--color-lime-400);
}

Keep the v3 colour in v4

@theme {
  --color-lime-400: #a3e635;
}

Related

← All Tailwind v3 to v4 colors