OKLCH Studio · Tailwind v3 → v4

Tailwind emerald-300: v3 #6ee7b7 vs v4 oklch(0.845 0.143 165.0)

Subtle shiftIn v4, emerald-300 is more saturated than in v3 (ΔL 0.000, ΔC +0.013, ΔH 0.0°).

Tailwind v3#6ee7b7
Tailwind v4oklch(0.845 0.143 165.0)
Tailwind emerald-300 values in v3 and v4
v3 hex#6ee7b7
v3 as oklch()oklch(0.845 0.130 165.0)
v4 oklch()oklch(0.845 0.143 165.0)
v4 hex#5EE9B5
ΔE-OK (×100)1.31
ΔL (v4 − v3)0
ΔC (v4 − v3)0.013
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #6ee7b7;

// tailwind.config.js (v3)
colors.emerald[300] // #6ee7b7

Tailwind v4 @theme token

@theme {
  --color-emerald-300: oklch(0.845 0.143 165.0);
}

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

Keep the v3 colour in v4

@theme {
  --color-emerald-300: #6ee7b7;
}

Related

← All Tailwind v3 to v4 colors