OKLCH Studio · Tailwind v3 → v4
Tailwind red-300: v3 #fca5a5 vs v4 oklch(0.808 0.114 19.6)
Subtle shiftIn v4, red-300 is more saturated than in v3 (ΔL 0.000, ΔC +0.011, ΔH 0.0°).
The v4 value is outside the sRGB gamut, so #FFA2A2 is a clipped sRGB approximation; wide-gamut displays can show it more vivid.
| v3 hex | #fca5a5 |
|---|---|
| v3 as oklch() | oklch(0.808 0.103 19.6) |
| v4 oklch() | oklch(0.808 0.114 19.6) |
| v4 hex | #FFA2A2 |
| ΔE-OK (×100) | 1.05 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0.011 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #fca5a5;
// tailwind.config.js (v3)
colors.red[300] // #fca5a5Tailwind v4 @theme token
@theme {
--color-red-300: oklch(0.808 0.114 19.6);
}
.example {
color: var(--color-red-300);
}Keep the v3 colour in v4
@theme {
--color-red-300: #fca5a5;
}