OKLCH Studio · Tailwind v3 → v4

Tailwind neutral-500: v3 #737373 vs v4 oklch(0.556 0.000 0.0)

Unchangedneutral-500 is effectively the same colour in v3 and v4 (ΔE-OK 0.05).

Tailwind v3#737373
Tailwind v4oklch(0.556 0.000 0.0)
Tailwind neutral-500 values in v3 and v4
v3 hex#737373
v3 as oklch()oklch(0.556 0.000 0.0)
v4 oklch()oklch(0.556 0.000 0.0)
v4 hex#737373
ΔE-OK (×100)0.05
ΔL (v4 − v3)0
ΔC (v4 − v3)0
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #737373;

// tailwind.config.js (v3)
colors.neutral[500] // #737373

Tailwind v4 @theme token

@theme {
  --color-neutral-500: oklch(0.556 0.000 0.0);
}

.example {
  color: var(--color-neutral-500);
}

Keep the v3 colour in v4

@theme {
  --color-neutral-500: #737373;
}

Related

← All Tailwind v3 to v4 colors