OKLCH Studio · Tailwind v3 → v4

Tailwind green-600: v3 #16a34a vs v4 oklch(0.627 0.194 149.2)

ChangedIn v4, green-600 is more saturated than in v3 (ΔL 0.000, ΔC +0.024, ΔH 0.0°).

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

Tailwind v3#16a34a
Tailwind v4oklch(0.627 0.194 149.2)
Tailwind green-600 values in v3 and v4
v3 hex#16a34a
v3 as oklch()oklch(0.627 0.170 149.2)
v4 oklch()oklch(0.627 0.194 149.2)
v4 hex#00A63E
ΔE-OK (×100)2.41
ΔL (v4 − v3)0
ΔC (v4 − v3)0.024
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #16a34a;

// tailwind.config.js (v3)
colors.green[600] // #16a34a

Tailwind v4 @theme token

@theme {
  --color-green-600: oklch(0.627 0.194 149.2);
}

.example {
  color: var(--color-green-600);
}

Keep the v3 colour in v4

@theme {
  --color-green-600: #16a34a;
}

Related

← All Tailwind v3 to v4 colors