OKLCH Studio · Tailwind v3 → v4

Tailwind amber-700: v3 #b45309 vs v4 oklch(0.555 0.163 49.0)

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

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

Tailwind v3#b45309
Tailwind v4oklch(0.555 0.163 49.0)
Tailwind amber-700 values in v3 and v4
v3 hex#b45309
v3 as oklch()oklch(0.555 0.146 49.0)
v4 oklch()oklch(0.555 0.163 49.0)
v4 hex#BB4D00
ΔE-OK (×100)1.75
ΔL (v4 − v3)0
ΔC (v4 − v3)0.017
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #b45309;

// tailwind.config.js (v3)
colors.amber[700] // #b45309

Tailwind v4 @theme token

@theme {
  --color-amber-700: oklch(0.555 0.163 49.0);
}

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

Keep the v3 colour in v4

@theme {
  --color-amber-700: #b45309;
}

Related

← All Tailwind v3 to v4 colors