OKLCH Studio · Tailwind v3 → v4

Tailwind neutral-700: v3 #404040 vs v4 oklch(0.371 0.000 0.0)

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

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

Copy code

Tailwind v3 usage

color: #404040;

// tailwind.config.js (v3)
colors.neutral[700] // #404040

Tailwind v4 @theme token

@theme {
  --color-neutral-700: oklch(0.371 0.000 0.0);
}

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

Keep the v3 colour in v4

@theme {
  --color-neutral-700: #404040;
}

Related

← All Tailwind v3 to v4 colors