OKLCH Studio · Tailwind v3 → v4
Tailwind neutral-800: v3 #262626 vs v4 oklch(0.269 0.000 0.0)
Unchangedneutral-800 is effectively the same colour in v3 and v4 (ΔE-OK 0.04).
| v3 hex | #262626 |
|---|---|
| v3 as oklch() | oklch(0.269 0.000 0.0) |
| v4 oklch() | oklch(0.269 0.000 0.0) |
| v4 hex | #262626 |
| ΔE-OK (×100) | 0.04 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #262626;
// tailwind.config.js (v3)
colors.neutral[800] // #262626Tailwind v4 @theme token
@theme {
--color-neutral-800: oklch(0.269 0.000 0.0);
}
.example {
color: var(--color-neutral-800);
}Keep the v3 colour in v4
@theme {
--color-neutral-800: #262626;
}