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