OKLCH Studio · Tailwind v3 → v4
Tailwind blue-100: v3 #dbeafe vs v4 oklch(0.932 0.032 255.6)
Unchangedblue-100 is effectively the same colour in v3 and v4 (ΔE-OK 0.04).
| v3 hex | #dbeafe |
|---|---|
| v3 as oklch() | oklch(0.932 0.032 255.6) |
| v4 oklch() | oklch(0.932 0.032 255.6) |
| v4 hex | #DBEAFE |
| ΔE-OK (×100) | 0.04 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #dbeafe;
// tailwind.config.js (v3)
colors.blue[100] // #dbeafeTailwind v4 @theme token
@theme {
--color-blue-100: oklch(0.932 0.032 255.6);
}
.example {
color: var(--color-blue-100);
}Keep the v3 colour in v4
@theme {
--color-blue-100: #dbeafe;
}