OKLCH Studio · Tailwind v3 → v4
Tailwind indigo-300: v3 #a5b4fc vs v4 oklch(0.785 0.115 274.7)
Subtle shiftIn v4, indigo-300 is more saturated than in v3 (ΔL 0.000, ΔC +0.011, ΔH 0.0°).
The v4 value is outside the sRGB gamut, so #A3B3FF is a clipped sRGB approximation; wide-gamut displays can show it more vivid.
| v3 hex | #a5b4fc |
|---|---|
| v3 as oklch() | oklch(0.785 0.104 274.7) |
| v4 oklch() | oklch(0.785 0.115 274.7) |
| v4 hex | #A3B3FF |
| ΔE-OK (×100) | 1.09 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0.011 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #a5b4fc;
// tailwind.config.js (v3)
colors.indigo[300] // #a5b4fcTailwind v4 @theme token
@theme {
--color-indigo-300: oklch(0.785 0.115 274.7);
}
.example {
color: var(--color-indigo-300);
}Keep the v3 colour in v4
@theme {
--color-indigo-300: #a5b4fc;
}