OKLCH Studio · Tailwind v3 → v4
Tailwind emerald-50: v3 #ecfdf5 vs v4 oklch(0.979 0.021 166.1)
Unchangedemerald-50 is effectively the same colour in v3 and v4 (ΔE-OK 0.05).
| v3 hex | #ecfdf5 |
|---|---|
| v3 as oklch() | oklch(0.979 0.021 166.1) |
| v4 oklch() | oklch(0.979 0.021 166.1) |
| v4 hex | #ECFDF5 |
| ΔE-OK (×100) | 0.05 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #ecfdf5;
// tailwind.config.js (v3)
colors.emerald[50] // #ecfdf5Tailwind v4 @theme token
@theme {
--color-emerald-50: oklch(0.979 0.021 166.1);
}
.example {
color: var(--color-emerald-50);
}Keep the v3 colour in v4
@theme {
--color-emerald-50: #ecfdf5;
}