OKLCH Studio · Tailwind v3 → v4
Tailwind green-700: v3 #15803d vs v4 oklch(0.527 0.154 150.1)
Subtle shiftIn v4, green-700 is more saturated than in v3 (ΔL 0.000, ΔC +0.017, ΔH 0.0°).
The v4 value is outside the sRGB gamut, so #008236 is a clipped sRGB approximation; wide-gamut displays can show it more vivid.
| v3 hex | #15803d |
|---|---|
| v3 as oklch() | oklch(0.527 0.137 150.1) |
| v4 oklch() | oklch(0.527 0.154 150.1) |
| v4 hex | #008236 |
| ΔE-OK (×100) | 1.69 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0.017 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #15803d;
// tailwind.config.js (v3)
colors.green[700] // #15803dTailwind v4 @theme token
@theme {
--color-green-700: oklch(0.527 0.154 150.1);
}
.example {
color: var(--color-green-700);
}Keep the v3 colour in v4
@theme {
--color-green-700: #15803d;
}