OKLCH Studio · Tailwind v3 → v4
Tailwind lime-200: v3 #d9f99d vs v4 oklch(0.938 0.127 124.3)
Subtle shiftIn v4, lime-200 is more saturated than in v3 (ΔL 0.000, ΔC +0.005, ΔH 0.0°).
| v3 hex | #d9f99d |
|---|---|
| v3 as oklch() | oklch(0.938 0.122 124.3) |
| v4 oklch() | oklch(0.938 0.127 124.3) |
| v4 hex | #D8F999 |
| ΔE-OK (×100) | 0.53 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0.005 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #d9f99d;
// tailwind.config.js (v3)
colors.lime[200] // #d9f99dTailwind v4 @theme token
@theme {
--color-lime-200: oklch(0.938 0.127 124.3);
}
.example {
color: var(--color-lime-200);
}Keep the v3 colour in v4
@theme {
--color-lime-200: #d9f99d;
}