OKLCH Studio · Tailwind v3 → v4

Tailwind slate-50: v3 #f8fafc vs v4 oklch(0.984 0.003 247.9)

Unchangedslate-50 is effectively the same colour in v3 and v4 (ΔE-OK 0.04).

Tailwind v3#f8fafc
Tailwind v4oklch(0.984 0.003 247.9)
Tailwind slate-50 values in v3 and v4
v3 hex#f8fafc
v3 as oklch()oklch(0.984 0.003 247.9)
v4 oklch()oklch(0.984 0.003 247.9)
v4 hex#F8FAFC
ΔE-OK (×100)0.04
ΔL (v4 − v3)0
ΔC (v4 − v3)0
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #f8fafc;

// tailwind.config.js (v3)
colors.slate[50] // #f8fafc

Tailwind v4 @theme token

@theme {
  --color-slate-50: oklch(0.984 0.003 247.9);
}

.example {
  color: var(--color-slate-50);
}

Keep the v3 colour in v4

@theme {
  --color-slate-50: #f8fafc;
}

Related

← All Tailwind v3 to v4 colors