OKLCH Studio · Tailwind v3 → v4
Tailwind fuchsia-300: v3 #f0abfc vs v4 oklch(0.833 0.145 321.4)
Subtle shiftIn v4, fuchsia-300 is more saturated than in v3 (ΔL 0.000, ΔC +0.013, ΔH 0.0°).
The v4 value is outside the sRGB gamut, so #F4A8FF is a clipped sRGB approximation; wide-gamut displays can show it more vivid.
| v3 hex | #f0abfc |
|---|---|
| v3 as oklch() | oklch(0.833 0.132 321.4) |
| v4 oklch() | oklch(0.833 0.145 321.4) |
| v4 hex | #F4A8FF |
| ΔE-OK (×100) | 1.28 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0.013 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #f0abfc;
// tailwind.config.js (v3)
colors.fuchsia[300] // #f0abfcTailwind v4 @theme token
@theme {
--color-fuchsia-300: oklch(0.833 0.145 321.4);
}
.example {
color: var(--color-fuchsia-300);
}Keep the v3 colour in v4
@theme {
--color-fuchsia-300: #f0abfc;
}