OKLCH Studio · Tailwind v3 → v4

Tailwind emerald-900: v3 #064e3b vs v4 oklch(0.378 0.077 168.9)

Unchangedemerald-900 is effectively the same colour in v3 and v4 (ΔE-OK 0.40).

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

Tailwind v3#064e3b
Tailwind v4oklch(0.378 0.077 168.9)
Tailwind emerald-900 values in v3 and v4
v3 hex#064e3b
v3 as oklch()oklch(0.378 0.073 168.9)
v4 oklch()oklch(0.378 0.077 168.9)
v4 hex#004F3B
ΔE-OK (×100)0.40
ΔL (v4 − v3)0
ΔC (v4 − v3)0.004
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #064e3b;

// tailwind.config.js (v3)
colors.emerald[900] // #064e3b

Tailwind v4 @theme token

@theme {
  --color-emerald-900: oklch(0.378 0.077 168.9);
}

.example {
  color: var(--color-emerald-900);
}

Keep the v3 colour in v4

@theme {
  --color-emerald-900: #064e3b;
}

Related

← All Tailwind v3 to v4 colors