OKLCH Studio · Tailwind v3 → v4
Tailwind emerald-100: v3 #d1fae5 vs v4 oklch(0.950 0.052 163.1)
Unchangedemerald-100 is effectively the same colour in v3 and v4 (ΔE-OK 0.13).
| v3 hex | #d1fae5 |
|---|---|
| v3 as oklch() | oklch(0.950 0.051 163.1) |
| v4 oklch() | oklch(0.950 0.052 163.1) |
| v4 hex | #D0FAE5 |
| ΔE-OK (×100) | 0.13 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0.001 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #d1fae5;
// tailwind.config.js (v3)
colors.emerald[100] // #d1fae5Tailwind v4 @theme token
@theme {
--color-emerald-100: oklch(0.950 0.052 163.1);
}
.example {
color: var(--color-emerald-100);
}Keep the v3 colour in v4
@theme {
--color-emerald-100: #d1fae5;
}