OKLCH Studio · Tailwind v3 → v4
Tailwind red-600: v3 #dc2626 vs v4 oklch(0.577 0.245 27.3)
ChangedIn v4, red-600 is more saturated than in v3 (ΔL 0.000, ΔC +0.030, ΔH 0.0°).
The v4 value is outside the sRGB gamut, so #E7000B is a clipped sRGB approximation; wide-gamut displays can show it more vivid.
| v3 hex | #dc2626 |
|---|---|
| v3 as oklch() | oklch(0.577 0.215 27.3) |
| v4 oklch() | oklch(0.577 0.245 27.3) |
| v4 hex | #E7000B |
| ΔE-OK (×100) | 2.98 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0.03 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #dc2626;
// tailwind.config.js (v3)
colors.red[600] // #dc2626Tailwind v4 @theme token
@theme {
--color-red-600: oklch(0.577 0.245 27.3);
}
.example {
color: var(--color-red-600);
}Keep the v3 colour in v4
@theme {
--color-red-600: #dc2626;
}