OKLCH Studio · Tailwind v3 → v4
Tailwind green-100: v3 #dcfce7 vs v4 oklch(0.962 0.044 156.7)
Unchangedgreen-100 is effectively the same colour in v3 and v4 (ΔE-OK 0.07).
| v3 hex | #dcfce7 |
|---|---|
| v3 as oklch() | oklch(0.962 0.043 156.7) |
| v4 oklch() | oklch(0.962 0.044 156.7) |
| v4 hex | #DCFCE7 |
| ΔE-OK (×100) | 0.07 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0.001 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #dcfce7;
// tailwind.config.js (v3)
colors.green[100] // #dcfce7Tailwind v4 @theme token
@theme {
--color-green-100: oklch(0.962 0.044 156.7);
}
.example {
color: var(--color-green-100);
}Keep the v3 colour in v4
@theme {
--color-green-100: #dcfce7;
}