OKLCH Studio · Tailwind v3 → v4
Tailwind fuchsia-100: v3 #fae8ff vs v4 oklch(0.952 0.037 318.9)
Unchangedfuchsia-100 is effectively the same colour in v3 and v4 (ΔE-OK 0.10).
The v4 value is outside the sRGB gamut, so #FAE8FF is a clipped sRGB approximation; wide-gamut displays can show it more vivid.
| v3 hex | #fae8ff |
|---|---|
| v3 as oklch() | oklch(0.952 0.036 318.9) |
| v4 oklch() | oklch(0.952 0.037 318.9) |
| v4 hex | #FAE8FF |
| ΔE-OK (×100) | 0.10 |
| ΔL (v4 − v3) | 0 |
| ΔC (v4 − v3) | 0.001 |
| ΔH (v4 − v3) | 0° |
Copy code
Tailwind v3 usage
color: #fae8ff;
// tailwind.config.js (v3)
colors.fuchsia[100] // #fae8ffTailwind v4 @theme token
@theme {
--color-fuchsia-100: oklch(0.952 0.037 318.9);
}
.example {
color: var(--color-fuchsia-100);
}Keep the v3 colour in v4
@theme {
--color-fuchsia-100: #fae8ff;
}