OKLCH Studio · Tailwind v3 → v4

Tailwind amber-100: v3 #fef3c7 vs v4 oklch(0.962 0.059 95.6)

Unchangedamber-100 is effectively the same colour in v3 and v4 (ΔE-OK 0.10).

Tailwind v3#fef3c7
Tailwind v4oklch(0.962 0.059 95.6)
Tailwind amber-100 values in v3 and v4
v3 hex#fef3c7
v3 as oklch()oklch(0.962 0.058 95.6)
v4 oklch()oklch(0.962 0.059 95.6)
v4 hex#FEF3C6
ΔE-OK (×100)0.10
ΔL (v4 − v3)0
ΔC (v4 − v3)0.001
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #fef3c7;

// tailwind.config.js (v3)
colors.amber[100] // #fef3c7

Tailwind v4 @theme token

@theme {
  --color-amber-100: oklch(0.962 0.059 95.6);
}

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

Keep the v3 colour in v4

@theme {
  --color-amber-100: #fef3c7;
}

Related

← All Tailwind v3 to v4 colors