OKLCH Studio · Tailwind v3 → v4
Tailwind fuchsia-600: v3 #c026d3 vs v4 oklch(0.591 0.293 322.9)
ChangedIn v4, fuchsia-600 is more saturated than in v3 (ΔL 0.000, ΔC +0.036, ΔH 0.0°).
The v4 value is outside the sRGB gamut, so #C800DE is a clipped sRGB approximation; wide-gamut displays can show it more vivid.
| v3 hex | #c026d3 |
|---|---|
| v3 as oklch() | oklch(0.591 0.257 322.9) |
| v4 oklch() | oklch(0.591 0.293 322.9) |
| v4 hex | #C800DE |
| ΔE-OK (×100) | 3.61 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0.036 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #c026d3;
// tailwind.config.js (v3)
colors.fuchsia[600] // #c026d3Tailwind v4 @theme token
@theme {
--color-fuchsia-600: oklch(0.591 0.293 322.9);
}
.example {
color: var(--color-fuchsia-600);
}Keep the v3 colour in v4
@theme {
--color-fuchsia-600: #c026d3;
}