OKLCH Studio · Tailwind v3 → v4
Tailwind gray-600: v3 #4b5563 vs v4 oklch(0.446 0.030 256.8)
Unchangedgray-600 is effectively the same colour in v3 and v4 (ΔE-OK 0.37).
| v3 hex | #4b5563 |
|---|---|
| v3 as oklch() | oklch(0.446 0.026 256.8) |
| v4 oklch() | oklch(0.446 0.030 256.8) |
| v4 hex | #4A5565 |
| ΔE-OK (×100) | 0.37 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0.004 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #4b5563;
// tailwind.config.js (v3)
colors.gray[600] // #4b5563Tailwind v4 @theme token
@theme {
--color-gray-600: oklch(0.446 0.030 256.8);
}
.example {
color: var(--color-gray-600);
}Keep the v3 colour in v4
@theme {
--color-gray-600: #4b5563;
}