OKLCH Studio · Tailwind v3 → v4
Tailwind green-50: v3 #f0fdf4 vs v4 oklch(0.982 0.018 155.8)
Unchangedgreen-50 is effectively the same colour in v3 and v4 (ΔE-OK 0.01).
| v3 hex | #f0fdf4 |
|---|---|
| v3 as oklch() | oklch(0.982 0.018 155.8) |
| v4 oklch() | oklch(0.982 0.018 155.8) |
| v4 hex | #F0FDF4 |
| ΔE-OK (×100) | 0.01 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #f0fdf4;
// tailwind.config.js (v3)
colors.green[50] // #f0fdf4Tailwind v4 @theme token
@theme {
--color-green-50: oklch(0.982 0.018 155.8);
}
.example {
color: var(--color-green-50);
}Keep the v3 colour in v4
@theme {
--color-green-50: #f0fdf4;
}