OKLCH Studio · Tailwind v3 → v4
Tailwind orange-500: v3 #f97316 vs v4 oklch(0.705 0.213 47.6)
ChangedIn v4, orange-500 is more saturated than in v3 (ΔL 0.000, ΔC +0.026, ΔH 0.0°).
The v4 value is outside the sRGB gamut, so #FF6900 is a clipped sRGB approximation; wide-gamut displays can show it more vivid.
| v3 hex | #f97316 |
|---|---|
| v3 as oklch() | oklch(0.705 0.187 47.6) |
| v4 oklch() | oklch(0.705 0.213 47.6) |
| v4 hex | #FF6900 |
| ΔE-OK (×100) | 2.63 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0.026 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #f97316;
// tailwind.config.js (v3)
colors.orange[500] // #f97316Tailwind v4 @theme token
@theme {
--color-orange-500: oklch(0.705 0.213 47.6);
}
.example {
color: var(--color-orange-500);
}Keep the v3 colour in v4
@theme {
--color-orange-500: #f97316;
}