OKLCH Studio · Tailwind v3 → v4

Tailwind neutral-600: v3 #525252 vs v4 oklch(0.439 0.000 0.0)

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

Tailwind v3#525252
Tailwind v4oklch(0.439 0.000 0.0)
Tailwind neutral-600 values in v3 and v4
v3 hex#525252
v3 as oklch()oklch(0.439 0.000 0.0)
v4 oklch()oklch(0.439 0.000 0.0)
v4 hex#525252
ΔE-OK (×100)0.04
ΔL (v4 − v3)0
ΔC (v4 − v3)0
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #525252;

// tailwind.config.js (v3)
colors.neutral[600] // #525252

Tailwind v4 @theme token

@theme {
  --color-neutral-600: oklch(0.439 0.000 0.0);
}

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

Keep the v3 colour in v4

@theme {
  --color-neutral-600: #525252;
}

Related

← All Tailwind v3 to v4 colors