OKLCH Studio · Tailwind v3 → v4
Tailwind cyan-700: v3 #0e7490 vs v4 oklch(0.520 0.105 223.1)
Subtle shiftIn v4, cyan-700 is more saturated than in v3 (ΔL 0.000, ΔC +0.011, ΔH 0.0°).
The v4 value is outside the sRGB gamut, so #007595 is a clipped sRGB approximation; wide-gamut displays can show it more vivid.
| v3 hex | #0e7490 |
|---|---|
| v3 as oklch() | oklch(0.520 0.094 223.1) |
| v4 oklch() | oklch(0.520 0.105 223.1) |
| v4 hex | #007595 |
| ΔE-OK (×100) | 1.14 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0.011 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #0e7490;
// tailwind.config.js (v3)
colors.cyan[700] // #0e7490Tailwind v4 @theme token
@theme {
--color-cyan-700: oklch(0.520 0.105 223.1);
}
.example {
color: var(--color-cyan-700);
}Keep the v3 colour in v4
@theme {
--color-cyan-700: #0e7490;
}