OKLCH Studio · Tailwind v3 → v4

Tailwind emerald-700: v3 #047857 vs v4 oklch(0.508 0.118 165.6)

Subtle shiftIn v4, emerald-700 is more saturated than in v3 (ΔL 0.000, ΔC +0.013, ΔH 0.0°).

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

Tailwind v3#047857
Tailwind v4oklch(0.508 0.118 165.6)
Tailwind emerald-700 values in v3 and v4
v3 hex#047857
v3 as oklch()oklch(0.508 0.105 165.6)
v4 oklch()oklch(0.508 0.118 165.6)
v4 hex#007A55
ΔE-OK (×100)1.31
ΔL (v4 − v3)0
ΔC (v4 − v3)0.013
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #047857;

// tailwind.config.js (v3)
colors.emerald[700] // #047857

Tailwind v4 @theme token

@theme {
  --color-emerald-700: oklch(0.508 0.118 165.6);
}

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

Keep the v3 colour in v4

@theme {
  --color-emerald-700: #047857;
}

Related

← All Tailwind v3 to v4 colors