OKLCH Studio · Tailwind v3 → v4
Tailwind gray-100: v3 #f3f4f6 vs v4 oklch(0.967 0.003 264.5)
Unchangedgray-100 is effectively the same colour in v3 and v4 (ΔE-OK 0.01).
| v3 hex | #f3f4f6 |
|---|---|
| v3 as oklch() | oklch(0.967 0.003 264.5) |
| v4 oklch() | oklch(0.967 0.003 264.5) |
| v4 hex | #F3F4F6 |
| ΔE-OK (×100) | 0.01 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #f3f4f6;
// tailwind.config.js (v3)
colors.gray[100] // #f3f4f6Tailwind v4 @theme token
@theme {
--color-gray-100: oklch(0.967 0.003 264.5);
}
.example {
color: var(--color-gray-100);
}Keep the v3 colour in v4
@theme {
--color-gray-100: #f3f4f6;
}