OKLCH Studio · Tailwind v3 → v4
Tailwind sky-50: v3 #f0f9ff vs v4 oklch(0.977 0.013 236.6)
Unchangedsky-50 is effectively the same colour in v3 and v4 (ΔE-OK 0.05).
The v4 value is outside the sRGB gamut, so #F0F9FF is a clipped sRGB approximation; wide-gamut displays can show it more vivid.
| v3 hex | #f0f9ff |
|---|---|
| v3 as oklch() | oklch(0.977 0.012 236.6) |
| v4 oklch() | oklch(0.977 0.013 236.6) |
| v4 hex | #F0F9FF |
| ΔE-OK (×100) | 0.05 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0.001 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #f0f9ff;
// tailwind.config.js (v3)
colors.sky[50] // #f0f9ffTailwind v4 @theme token
@theme {
--color-sky-50: oklch(0.977 0.013 236.6);
}
.example {
color: var(--color-sky-50);
}Keep the v3 colour in v4
@theme {
--color-sky-50: #f0f9ff;
}