OKLCH Studio · Tailwind v3 → v4
Tailwind teal-400: v3 #2dd4bf vs v4 oklch(0.777 0.152 181.9)
ChangedIn v4, teal-400 is darker and more saturated than in v3 (ΔL -0.008, ΔC +0.019, ΔH 0.0°).
The v4 value is outside the sRGB gamut, so #00D5BE is a clipped sRGB approximation; wide-gamut displays can show it more vivid.
| v3 hex | #2dd4bf |
|---|---|
| v3 as oklch() | oklch(0.785 0.133 181.9) |
| v4 oklch() | oklch(0.777 0.152 181.9) |
| v4 hex | #00D5BE |
| ΔE-OK (×100) | 2.09 |
| ΔL (v4 − v3) | -0.008 |
| ΔC (v4 − v3) | 0.019 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #2dd4bf;
// tailwind.config.js (v3)
colors.teal[400] // #2dd4bfTailwind v4 @theme token
@theme {
--color-teal-400: oklch(0.777 0.152 181.9);
}
.example {
color: var(--color-teal-400);
}Keep the v3 colour in v4
@theme {
--color-teal-400: #2dd4bf;
}