OKLCH Studio · Tailwind v3 → v4
Tailwind lime-600: v3 #65a30d vs v4 oklch(0.648 0.200 131.7)
ChangedIn v4, lime-600 is more saturated than in v3 (ΔL 0.000, ΔC +0.025, ΔH 0.0°).
The v4 value is outside the sRGB gamut, so #5EA500 is a clipped sRGB approximation; wide-gamut displays can show it more vivid.
| v3 hex | #65a30d |
|---|---|
| v3 as oklch() | oklch(0.648 0.175 131.7) |
| v4 oklch() | oklch(0.648 0.200 131.7) |
| v4 hex | #5EA500 |
| ΔE-OK (×100) | 2.46 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0.025 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #65a30d;
// tailwind.config.js (v3)
colors.lime[600] // #65a30dTailwind v4 @theme token
@theme {
--color-lime-600: oklch(0.648 0.200 131.7);
}
.example {
color: var(--color-lime-600);
}Keep the v3 colour in v4
@theme {
--color-lime-600: #65a30d;
}