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