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