OKLCH Studio · Tailwind v3 → v4

Tailwind emerald-200: v3 #a7f3d0 vs v4 oklch(0.905 0.093 164.2)

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

Tailwind v3#a7f3d0
Tailwind v4oklch(0.905 0.093 164.2)
Tailwind emerald-200 values in v3 and v4
v3 hex#a7f3d0
v3 as oklch()oklch(0.905 0.089 164.2)
v4 oklch()oklch(0.905 0.093 164.2)
v4 hex#A4F4CF
ΔE-OK (×100)0.35
ΔL (v4 − v3)0
ΔC (v4 − v3)0.004
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #a7f3d0;

// tailwind.config.js (v3)
colors.emerald[200] // #a7f3d0

Tailwind v4 @theme token

@theme {
  --color-emerald-200: oklch(0.905 0.093 164.2);
}

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

Keep the v3 colour in v4

@theme {
  --color-emerald-200: #a7f3d0;
}

Related

← All Tailwind v3 to v4 colors