OKLCH Studio · Tailwind v3 → v4
Tailwind slate-200: v3 #e2e8f0 vs v4 oklch(0.929 0.013 255.5)
Unchangedslate-200 is effectively the same colour in v3 and v4 (ΔE-OK 0.04).
| v3 hex | #e2e8f0 |
|---|---|
| v3 as oklch() | oklch(0.929 0.013 255.5) |
| v4 oklch() | oklch(0.929 0.013 255.5) |
| v4 hex | #E2E8F0 |
| ΔE-OK (×100) | 0.04 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #e2e8f0;
// tailwind.config.js (v3)
colors.slate[200] // #e2e8f0Tailwind v4 @theme token
@theme {
--color-slate-200: oklch(0.929 0.013 255.5);
}
.example {
color: var(--color-slate-200);
}Keep the v3 colour in v4
@theme {
--color-slate-200: #e2e8f0;
}