OKLCH Studio · Tailwind v3 → v4
Tailwind amber-50: v3 #fffbeb vs v4 oklch(0.987 0.022 95.3)
Unchangedamber-50 is effectively the same colour in v3 and v4 (ΔE-OK 0.06).
The v4 value is outside the sRGB gamut, so #FFFBEB is a clipped sRGB approximation; wide-gamut displays can show it more vivid.
| v3 hex | #fffbeb |
|---|---|
| v3 as oklch() | oklch(0.987 0.021 95.3) |
| v4 oklch() | oklch(0.987 0.022 95.3) |
| v4 hex | #FFFBEB |
| ΔE-OK (×100) | 0.06 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0.001 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #fffbeb;
// tailwind.config.js (v3)
colors.amber[50] // #fffbebTailwind v4 @theme token
@theme {
--color-amber-50: oklch(0.987 0.022 95.3);
}
.example {
color: var(--color-amber-50);
}Keep the v3 colour in v4
@theme {
--color-amber-50: #fffbeb;
}