OKLCH Studio · Tailwind v3 → v4
Tailwind cyan-800: v3 #155e75 vs v4 oklch(0.450 0.085 224.3)
Subtle shiftIn v4, cyan-800 is more saturated than in v3 (ΔL 0.000, ΔC +0.008, ΔH 0.0°).
The v4 value is outside the sRGB gamut, so #005F78 is a clipped sRGB approximation; wide-gamut displays can show it more vivid.
| v3 hex | #155e75 |
|---|---|
| v3 as oklch() | oklch(0.450 0.077 224.3) |
| v4 oklch() | oklch(0.450 0.085 224.3) |
| v4 hex | #005F78 |
| ΔE-OK (×100) | 0.79 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0.008 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #155e75;
// tailwind.config.js (v3)
colors.cyan[800] // #155e75Tailwind v4 @theme token
@theme {
--color-cyan-800: oklch(0.450 0.085 224.3);
}
.example {
color: var(--color-cyan-800);
}Keep the v3 colour in v4
@theme {
--color-cyan-800: #155e75;
}