OKLCH Studio · Tailwind v3 → v4

Tailwind fuchsia-900: v3 #701a75 vs v4 oklch(0.401 0.170 325.6)

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

Tailwind v3#701a75
Tailwind v4oklch(0.401 0.170 325.6)
Tailwind fuchsia-900 values in v3 and v4
v3 hex#701a75
v3 as oklch()oklch(0.401 0.160 325.6)
v4 oklch()oklch(0.401 0.170 325.6)
v4 hex#721378
ΔE-OK (×100)0.99
ΔL (v4 − v3)0
ΔC (v4 − v3)0.01
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #701a75;

// tailwind.config.js (v3)
colors.fuchsia[900] // #701a75

Tailwind v4 @theme token

@theme {
  --color-fuchsia-900: oklch(0.401 0.170 325.6);
}

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

Keep the v3 colour in v4

@theme {
  --color-fuchsia-900: #701a75;
}

Related

← All Tailwind v3 to v4 colors