OKLCH Studio · Tailwind v3 → v4

Tailwind neutral-900: v3 #171717 vs v4 oklch(0.205 0.000 0.0)

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

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

Copy code

Tailwind v3 usage

color: #171717;

// tailwind.config.js (v3)
colors.neutral[900] // #171717

Tailwind v4 @theme token

@theme {
  --color-neutral-900: oklch(0.205 0.000 0.0);
}

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

Keep the v3 colour in v4

@theme {
  --color-neutral-900: #171717;
}

Related

← All Tailwind v3 to v4 colors