OKLCH Studio · Tailwind v3 → v4
Tailwind slate-500: v3 #64748b vs v4 oklch(0.554 0.046 257.4)
Subtle shiftIn v4, slate-500 is more saturated than in v3 (ΔL 0.000, ΔC +0.005, ΔH 0.0°).
| v3 hex | #64748b |
|---|---|
| v3 as oklch() | oklch(0.554 0.041 257.4) |
| v4 oklch() | oklch(0.554 0.046 257.4) |
| v4 hex | #62748E |
| ΔE-OK (×100) | 0.53 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0.005 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #64748b;
// tailwind.config.js (v3)
colors.slate[500] // #64748bTailwind v4 @theme token
@theme {
--color-slate-500: oklch(0.554 0.046 257.4);
}
.example {
color: var(--color-slate-500);
}Keep the v3 colour in v4
@theme {
--color-slate-500: #64748b;
}