OKLCH Studio · Tailwind v3 → v4
Tailwind orange-50: v3 #fff7ed vs v4 oklch(0.980 0.016 73.7)
Unchangedorange-50 is effectively the same colour in v3 and v4 (ΔE-OK 0.04).
The v4 value is outside the sRGB gamut, so #FFF7ED is a clipped sRGB approximation; wide-gamut displays can show it more vivid.
| v3 hex | #fff7ed |
|---|---|
| v3 as oklch() | oklch(0.980 0.016 73.7) |
| v4 oklch() | oklch(0.980 0.016 73.7) |
| v4 hex | #FFF7ED |
| ΔE-OK (×100) | 0.04 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #fff7ed;
// tailwind.config.js (v3)
colors.orange[50] // #fff7edTailwind v4 @theme token
@theme {
--color-orange-50: oklch(0.980 0.016 73.7);
}
.example {
color: var(--color-orange-50);
}Keep the v3 colour in v4
@theme {
--color-orange-50: #fff7ed;
}