OKLCH Studio · Tailwind v3 → v4

Tailwind blue-200: v3 #bfdbfe vs v4 oklch(0.882 0.059 254.1)

Unchangedblue-200 is effectively the same colour in v3 and v4 (ΔE-OK 0.20).

The v4 value is outside the sRGB gamut, so #BEDBFF is a clipped sRGB approximation; wide-gamut displays can show it more vivid.

Tailwind v3#bfdbfe
Tailwind v4oklch(0.882 0.059 254.1)
Tailwind blue-200 values in v3 and v4
v3 hex#bfdbfe
v3 as oklch()oklch(0.882 0.057 254.1)
v4 oklch()oklch(0.882 0.059 254.1)
v4 hex#BEDBFF
ΔE-OK (×100)0.20
ΔL (v4 − v3)0
ΔC (v4 − v3)0.002
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #bfdbfe;

// tailwind.config.js (v3)
colors.blue[200] // #bfdbfe

Tailwind v4 @theme token

@theme {
  --color-blue-200: oklch(0.882 0.059 254.1);
}

.example {
  color: var(--color-blue-200);
}

Keep the v3 colour in v4

@theme {
  --color-blue-200: #bfdbfe;
}

Related

← All Tailwind v3 to v4 colors