OKLCH Studio · Tailwind v3 → v4
Tailwind pink-50: v3 #fdf2f8 vs v4 oklch(0.971 0.014 343.2)
Unchangedpink-50 is effectively the same colour in v3 and v4 (ΔE-OK 0.04).
| v3 hex | #fdf2f8 |
|---|---|
| v3 as oklch() | oklch(0.971 0.014 343.2) |
| v4 oklch() | oklch(0.971 0.014 343.2) |
| v4 hex | #FDF2F8 |
| ΔE-OK (×100) | 0.04 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #fdf2f8;
// tailwind.config.js (v3)
colors.pink[50] // #fdf2f8Tailwind v4 @theme token
@theme {
--color-pink-50: oklch(0.971 0.014 343.2);
}
.example {
color: var(--color-pink-50);
}Keep the v3 colour in v4
@theme {
--color-pink-50: #fdf2f8;
}