OKLCH Studio · Tailwind v3 → v4
Tailwind teal-600: v3 #0d9488 vs v4 oklch(0.600 0.118 184.7)
Subtle shiftIn v4, teal-600 is more saturated than in v3 (ΔL 0.000, ΔC +0.014, ΔH 0.0°).
The v4 value is outside the sRGB gamut, so #009689 is a clipped sRGB approximation; wide-gamut displays can show it more vivid.
| v3 hex | #0d9488 |
|---|---|
| v3 as oklch() | oklch(0.600 0.104 184.7) |
| v4 oklch() | oklch(0.600 0.118 184.7) |
| v4 hex | #009689 |
| ΔE-OK (×100) | 1.42 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0.014 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #0d9488;
// tailwind.config.js (v3)
colors.teal[600] // #0d9488Tailwind v4 @theme token
@theme {
--color-teal-600: oklch(0.600 0.118 184.7);
}
.example {
color: var(--color-teal-600);
}Keep the v3 colour in v4
@theme {
--color-teal-600: #0d9488;
}