OKLCH Studio · Tailwind v3 → v4
Tailwind blue-400: v3 #60a5fa vs v4 oklch(0.707 0.165 254.6)
ChangedIn v4, blue-400 is darker and more saturated than in v3 (ΔL -0.007, ΔC +0.022, ΔH 0.0°).
The v4 value is outside the sRGB gamut, so #51A2FF is a clipped sRGB approximation; wide-gamut displays can show it more vivid.
| v3 hex | #60a5fa |
|---|---|
| v3 as oklch() | oklch(0.714 0.143 254.6) |
| v4 oklch() | oklch(0.707 0.165 254.6) |
| v4 hex | #51A2FF |
| ΔE-OK (×100) | 2.26 |
| ΔL (v4 − v3) | -0.007 |
| ΔC (v4 − v3) | 0.022 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #60a5fa;
// tailwind.config.js (v3)
colors.blue[400] // #60a5faTailwind v4 @theme token
@theme {
--color-blue-400: oklch(0.707 0.165 254.6);
}
.example {
color: var(--color-blue-400);
}Keep the v3 colour in v4
@theme {
--color-blue-400: #60a5fa;
}