OKLCH Studio · Tailwind v3 → v4

Tailwind teal-800: v3 #115e59 vs v4 oklch(0.437 0.078 188.2)

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

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

Tailwind v3#115e59
Tailwind v4oklch(0.437 0.078 188.2)
Tailwind teal-800 values in v3 and v4
v3 hex#115e59
v3 as oklch()oklch(0.437 0.071 188.2)
v4 oklch()oklch(0.437 0.078 188.2)
v4 hex#005F5A
ΔE-OK (×100)0.75
ΔL (v4 − v3)0
ΔC (v4 − v3)0.007
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #115e59;

// tailwind.config.js (v3)
colors.teal[800] // #115e59

Tailwind v4 @theme token

@theme {
  --color-teal-800: oklch(0.437 0.078 188.2);
}

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

Keep the v3 colour in v4

@theme {
  --color-teal-800: #115e59;
}

Related

← All Tailwind v3 to v4 colors