OKLCH Studio · Tailwind v3 → v4
Tailwind emerald-500: v3 #10b981 vs v4 oklch(0.696 0.170 162.5)
ChangedIn v4, emerald-500 is more saturated than in v3 (ΔL 0.000, ΔC +0.021, ΔH 0.0°).
The v4 value is outside the sRGB gamut, so #00BC7D is a clipped sRGB approximation; wide-gamut displays can show it more vivid.
| v3 hex | #10b981 |
|---|---|
| v3 as oklch() | oklch(0.696 0.149 162.5) |
| v4 oklch() | oklch(0.696 0.170 162.5) |
| v4 hex | #00BC7D |
| ΔE-OK (×100) | 2.09 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0.021 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #10b981;
// tailwind.config.js (v3)
colors.emerald[500] // #10b981Tailwind v4 @theme token
@theme {
--color-emerald-500: oklch(0.696 0.170 162.5);
}
.example {
color: var(--color-emerald-500);
}Keep the v3 colour in v4
@theme {
--color-emerald-500: #10b981;
}