OKLCH Studio · Tailwind v3 → v4
Tailwind emerald-800: v3 #065f46 vs v4 oklch(0.432 0.095 166.9)
Subtle shiftIn v4, emerald-800 is more saturated than in v3 (ΔL 0.000, ΔC +0.009, ΔH 0.0°).
The v4 value is outside the sRGB gamut, so #006045 is a clipped sRGB approximation; wide-gamut displays can show it more vivid.
| v3 hex | #065f46 |
|---|---|
| v3 as oklch() | oklch(0.432 0.086 166.9) |
| v4 oklch() | oklch(0.432 0.095 166.9) |
| v4 hex | #006045 |
| ΔE-OK (×100) | 0.85 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0.009 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #065f46;
// tailwind.config.js (v3)
colors.emerald[800] // #065f46Tailwind v4 @theme token
@theme {
--color-emerald-800: oklch(0.432 0.095 166.9);
}
.example {
color: var(--color-emerald-800);
}Keep the v3 colour in v4
@theme {
--color-emerald-800: #065f46;
}