OKLCH Studio · Tailwind v3 → v4

Tailwind fuchsia-950: v3 #4a044e vs v4 oklch(0.293 0.136 325.7)

Subtle shiftIn v4, fuchsia-950 is more saturated than in v3 (ΔL 0.000, ΔC +0.005, ΔH 0.0°).

Tailwind v3#4a044e
Tailwind v4oklch(0.293 0.136 325.7)
Tailwind fuchsia-950 values in v3 and v4
v3 hex#4a044e
v3 as oklch()oklch(0.293 0.131 325.7)
v4 oklch()oklch(0.293 0.136 325.7)
v4 hex#4B004F
ΔE-OK (×100)0.51
ΔL (v4 − v3)0
ΔC (v4 − v3)0.005
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #4a044e;

// tailwind.config.js (v3)
colors.fuchsia[950] // #4a044e

Tailwind v4 @theme token

@theme {
  --color-fuchsia-950: oklch(0.293 0.136 325.7);
}

.example {
  color: var(--color-fuchsia-950);
}

Keep the v3 colour in v4

@theme {
  --color-fuchsia-950: #4a044e;
}

Related

← All Tailwind v3 to v4 colors