OKLCH Studio · Tailwind v3 → v4
Tailwind stone-100: v3 #f5f5f4 vs v4 oklch(0.970 0.001 106.4)
Unchangedstone-100 is effectively the same colour in v3 and v4 (ΔE-OK 0.03).
| v3 hex | #f5f5f4 |
|---|---|
| v3 as oklch() | oklch(0.970 0.001 106.4) |
| v4 oklch() | oklch(0.970 0.001 106.4) |
| v4 hex | #F5F5F4 |
| ΔE-OK (×100) | 0.03 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #f5f5f4;
// tailwind.config.js (v3)
colors.stone[100] // #f5f5f4Tailwind v4 @theme token
@theme {
--color-stone-100: oklch(0.970 0.001 106.4);
}
.example {
color: var(--color-stone-100);
}Keep the v3 colour in v4
@theme {
--color-stone-100: #f5f5f4;
}