OKLCH Studio · Tailwind v3 → v4
Tailwind amber-200: v3 #fde68a vs v4 oklch(0.924 0.120 95.7)
Unchangedamber-200 is effectively the same colour in v3 and v4 (ΔE-OK 0.49).
| v3 hex | #fde68a |
|---|---|
| v3 as oklch() | oklch(0.924 0.115 95.7) |
| v4 oklch() | oklch(0.924 0.120 95.7) |
| v4 hex | #FEE685 |
| ΔE-OK (×100) | 0.49 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0.005 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #fde68a;
// tailwind.config.js (v3)
colors.amber[200] // #fde68aTailwind v4 @theme token
@theme {
--color-amber-200: oklch(0.924 0.120 95.7);
}
.example {
color: var(--color-amber-200);
}Keep the v3 colour in v4
@theme {
--color-amber-200: #fde68a;
}