OKLCH Studio · Tailwind v3 → v4
Tailwind rose-100: v3 #ffe4e6 vs v4 oklch(0.941 0.030 12.6)
Unchangedrose-100 is effectively the same colour in v3 and v4 (ΔE-OK 0.04).
The v4 value is outside the sRGB gamut, so #FFE4E6 is a clipped sRGB approximation; wide-gamut displays can show it more vivid.
| v3 hex | #ffe4e6 |
|---|---|
| v3 as oklch() | oklch(0.941 0.030 12.6) |
| v4 oklch() | oklch(0.941 0.030 12.6) |
| v4 hex | #FFE4E6 |
| ΔE-OK (×100) | 0.04 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #ffe4e6;
// tailwind.config.js (v3)
colors.rose[100] // #ffe4e6Tailwind v4 @theme token
@theme {
--color-rose-100: oklch(0.941 0.030 12.6);
}
.example {
color: var(--color-rose-100);
}Keep the v3 colour in v4
@theme {
--color-rose-100: #ffe4e6;
}