OKLCH Studio · Tailwind v3 → v4
Tailwind sky-600: v3 #0284c7 vs v4 oklch(0.588 0.158 242.0)
Subtle shiftIn v4, sky-600 is more saturated than in v3 (ΔL 0.000, ΔC +0.019, ΔH 0.0°).
The v4 value is outside the sRGB gamut, so #0084D1 is a clipped sRGB approximation; wide-gamut displays can show it more vivid.
| v3 hex | #0284c7 |
|---|---|
| v3 as oklch() | oklch(0.588 0.139 242.0) |
| v4 oklch() | oklch(0.588 0.158 242.0) |
| v4 hex | #0084D1 |
| ΔE-OK (×100) | 1.91 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0.019 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #0284c7;
// tailwind.config.js (v3)
colors.sky[600] // #0284c7Tailwind v4 @theme token
@theme {
--color-sky-600: oklch(0.588 0.158 242.0);
}
.example {
color: var(--color-sky-600);
}Keep the v3 colour in v4
@theme {
--color-sky-600: #0284c7;
}