OKLCH Studio · Tailwind v3 → v4
Tailwind slate-400: v3 #94a3b8 vs v4 oklch(0.704 0.040 256.8)
Subtle shiftIn v4, slate-400 is darker and more saturated than in v3 (ΔL -0.007, ΔC +0.005, ΔH 0.0°).
| v3 hex | #94a3b8 |
|---|---|
| v3 as oklch() | oklch(0.711 0.035 256.8) |
| v4 oklch() | oklch(0.704 0.040 256.8) |
| v4 hex | #90A1B9 |
| ΔE-OK (×100) | 0.83 |
| ΔL (v4 − v3) | -0.007 |
| ΔC (v4 − v3) | 0.005 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #94a3b8;
// tailwind.config.js (v3)
colors.slate[400] // #94a3b8Tailwind v4 @theme token
@theme {
--color-slate-400: oklch(0.704 0.040 256.8);
}
.example {
color: var(--color-slate-400);
}Keep the v3 colour in v4
@theme {
--color-slate-400: #94a3b8;
}