OKLCH Studio · Tailwind v3 → v4
Tailwind slate-100: v3 #f1f5f9 vs v4 oklch(0.968 0.007 247.9)
Unchangedslate-100 is effectively the same colour in v3 and v4 (ΔE-OK 0.03).
| v3 hex | #f1f5f9 |
|---|---|
| v3 as oklch() | oklch(0.968 0.007 247.9) |
| v4 oklch() | oklch(0.968 0.007 247.9) |
| v4 hex | #F1F5F9 |
| ΔE-OK (×100) | 0.03 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #f1f5f9;
// tailwind.config.js (v3)
colors.slate[100] // #f1f5f9Tailwind v4 @theme token
@theme {
--color-slate-100: oklch(0.968 0.007 247.9);
}
.example {
color: var(--color-slate-100);
}Keep the v3 colour in v4
@theme {
--color-slate-100: #f1f5f9;
}