OKLCH Studio · Tailwind v3 → v4
Tailwind cyan-500: v3 #06b6d4 vs v4 oklch(0.715 0.143 215.2)
Subtle shiftIn v4, cyan-500 is more saturated than in v3 (ΔL 0.000, ΔC +0.017, ΔH 0.0°).
The v4 value is outside the sRGB gamut, so #00B8DB is a clipped sRGB approximation; wide-gamut displays can show it more vivid.
| v3 hex | #06b6d4 |
|---|---|
| v3 as oklch() | oklch(0.715 0.126 215.2) |
| v4 oklch() | oklch(0.715 0.143 215.2) |
| v4 hex | #00B8DB |
| ΔE-OK (×100) | 1.73 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0.017 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #06b6d4;
// tailwind.config.js (v3)
colors.cyan[500] // #06b6d4Tailwind v4 @theme token
@theme {
--color-cyan-500: oklch(0.715 0.143 215.2);
}
.example {
color: var(--color-cyan-500);
}Keep the v3 colour in v4
@theme {
--color-cyan-500: #06b6d4;
}