OKLCH Studio · Tailwind v3 → v4
Tailwind stone-200: v3 #e7e5e4 vs v4 oklch(0.923 0.003 48.7)
Unchangedstone-200 is effectively the same colour in v3 and v4 (ΔE-OK 0.05).
| v3 hex | #e7e5e4 |
|---|---|
| v3 as oklch() | oklch(0.923 0.003 48.7) |
| v4 oklch() | oklch(0.923 0.003 48.7) |
| v4 hex | #E7E5E4 |
| ΔE-OK (×100) | 0.05 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #e7e5e4;
// tailwind.config.js (v3)
colors.stone[200] // #e7e5e4Tailwind v4 @theme token
@theme {
--color-stone-200: oklch(0.923 0.003 48.7);
}
.example {
color: var(--color-stone-200);
}Keep the v3 colour in v4
@theme {
--color-stone-200: #e7e5e4;
}