OKLCH Studio · Tailwind v3 → v4
Tailwind amber-600: v3 #d97706 vs v4 oklch(0.666 0.179 58.3)
ChangedIn v4, amber-600 is more saturated than in v3 (ΔL 0.000, ΔC +0.022, ΔH 0.0°).
The v4 value is outside the sRGB gamut, so #E17100 is a clipped sRGB approximation; wide-gamut displays can show it more vivid.
| v3 hex | #d97706 |
|---|---|
| v3 as oklch() | oklch(0.666 0.157 58.3) |
| v4 oklch() | oklch(0.666 0.179 58.3) |
| v4 hex | #E17100 |
| ΔE-OK (×100) | 2.16 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0.022 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #d97706;
// tailwind.config.js (v3)
colors.amber[600] // #d97706Tailwind v4 @theme token
@theme {
--color-amber-600: oklch(0.666 0.179 58.3);
}
.example {
color: var(--color-amber-600);
}Keep the v3 colour in v4
@theme {
--color-amber-600: #d97706;
}