OKLCH Studio · Tailwind v3 → v4

Tailwind teal-700: v3 #0f766e vs v4 oklch(0.511 0.096 186.4)

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

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

Tailwind v3#0f766e
Tailwind v4oklch(0.511 0.096 186.4)
Tailwind teal-700 values in v3 and v4
v3 hex#0f766e
v3 as oklch()oklch(0.511 0.086 186.4)
v4 oklch()oklch(0.511 0.096 186.4)
v4 hex#00786F
ΔE-OK (×100)0.99
ΔL (v4 − v3)0
ΔC (v4 − v3)0.01
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #0f766e;

// tailwind.config.js (v3)
colors.teal[700] // #0f766e

Tailwind v4 @theme token

@theme {
  --color-teal-700: oklch(0.511 0.096 186.4);
}

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

Keep the v3 colour in v4

@theme {
  --color-teal-700: #0f766e;
}

Related

← All Tailwind v3 to v4 colors