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