OKLCH Studio · Tailwind v3 → v4

Tailwind amber-300: v3 #fcd34d vs v4 oklch(0.879 0.169 91.6)

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

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

Tailwind v3#fcd34d
Tailwind v4oklch(0.879 0.169 91.6)
Tailwind amber-300 values in v3 and v4
v3 hex#fcd34d
v3 as oklch()oklch(0.879 0.153 91.6)
v4 oklch()oklch(0.879 0.169 91.6)
v4 hex#FFD230
ΔE-OK (×100)1.56
ΔL (v4 − v3)0
ΔC (v4 − v3)0.016
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #fcd34d;

// tailwind.config.js (v3)
colors.amber[300] // #fcd34d

Tailwind v4 @theme token

@theme {
  --color-amber-300: oklch(0.879 0.169 91.6);
}

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

Keep the v3 colour in v4

@theme {
  --color-amber-300: #fcd34d;
}

Related

← All Tailwind v3 to v4 colors