OKLCH Studio · Tailwind v3 → v4

Tailwind lime-800: v3 #3f6212 vs v4 oklch(0.453 0.124 130.9)

Subtle shiftIn v4, lime-800 is more saturated than in v3 (ΔL 0.000, ΔC +0.011, ΔH 0.0°).

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

Tailwind v3#3f6212
Tailwind v4oklch(0.453 0.124 130.9)
Tailwind lime-800 values in v3 and v4
v3 hex#3f6212
v3 as oklch()oklch(0.453 0.113 130.9)
v4 oklch()oklch(0.453 0.124 130.9)
v4 hex#3C6300
ΔE-OK (×100)1.11
ΔL (v4 − v3)0
ΔC (v4 − v3)0.011
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #3f6212;

// tailwind.config.js (v3)
colors.lime[800] // #3f6212

Tailwind v4 @theme token

@theme {
  --color-lime-800: oklch(0.453 0.124 130.9);
}

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

Keep the v3 colour in v4

@theme {
  --color-lime-800: #3f6212;
}

Related

← All Tailwind v3 to v4 colors