OKLCH Studio · Tailwind v3 → v4
Tailwind cyan-600: v3 #0891b2 vs v4 oklch(0.609 0.126 221.7)
Subtle shiftIn v4, cyan-600 is more saturated than in v3 (ΔL 0.000, ΔC +0.015, ΔH 0.0°).
The v4 value is outside the sRGB gamut, so #0092B8 is a clipped sRGB approximation; wide-gamut displays can show it more vivid.
| v3 hex | #0891b2 |
|---|---|
| v3 as oklch() | oklch(0.609 0.111 221.7) |
| v4 oklch() | oklch(0.609 0.126 221.7) |
| v4 hex | #0092B8 |
| ΔE-OK (×100) | 1.51 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0.015 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #0891b2;
// tailwind.config.js (v3)
colors.cyan[600] // #0891b2Tailwind v4 @theme token
@theme {
--color-cyan-600: oklch(0.609 0.126 221.7);
}
.example {
color: var(--color-cyan-600);
}Keep the v3 colour in v4
@theme {
--color-cyan-600: #0891b2;
}