OKLCH Studio · Tailwind v3 → v4
Tailwind fuchsia-800: v3 #86198f vs v4 oklch(0.452 0.211 324.6)
Subtle shiftIn v4, fuchsia-800 is more saturated than in v3 (ΔL 0.000, ΔC +0.019, ΔH 0.0°).
| v3 hex | #86198f |
|---|---|
| v3 as oklch() | oklch(0.452 0.192 324.6) |
| v4 oklch() | oklch(0.452 0.211 324.6) |
| v4 hex | #8A0194 |
| ΔE-OK (×100) | 1.88 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0.019 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #86198f;
// tailwind.config.js (v3)
colors.fuchsia[800] // #86198fTailwind v4 @theme token
@theme {
--color-fuchsia-800: oklch(0.452 0.211 324.6);
}
.example {
color: var(--color-fuchsia-800);
}Keep the v3 colour in v4
@theme {
--color-fuchsia-800: #86198f;
}