OKLCH Studio · Tailwind v3 → v4
Tailwind teal-500: v3 #14b8a6 vs v4 oklch(0.704 0.140 182.5)
Subtle shiftIn v4, teal-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 #00BBA7 is a clipped sRGB approximation; wide-gamut displays can show it more vivid.
| v3 hex | #14b8a6 |
|---|---|
| v3 as oklch() | oklch(0.704 0.123 182.5) |
| v4 oklch() | oklch(0.704 0.140 182.5) |
| v4 hex | #00BBA7 |
| ΔE-OK (×100) | 1.70 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0.017 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #14b8a6;
// tailwind.config.js (v3)
colors.teal[500] // #14b8a6Tailwind v4 @theme token
@theme {
--color-teal-500: oklch(0.704 0.140 182.5);
}
.example {
color: var(--color-teal-500);
}Keep the v3 colour in v4
@theme {
--color-teal-500: #14b8a6;
}