OKLCH Studio · Tailwind v3 → v4

Tailwind lime-300: v3 #bef264 vs v4 oklch(0.897 0.196 126.7)

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

Tailwind v3#bef264
Tailwind v4oklch(0.897 0.196 126.7)
Tailwind lime-300 values in v3 and v4
v3 hex#bef264
v3 as oklch()oklch(0.897 0.179 126.7)
v4 oklch()oklch(0.897 0.196 126.7)
v4 hex#BBF451
ΔE-OK (×100)1.74
ΔL (v4 − v3)0
ΔC (v4 − v3)0.017
ΔH (v4 − v3)0°

Copy code

Tailwind v3 usage

color: #bef264;

// tailwind.config.js (v3)
colors.lime[300] // #bef264

Tailwind v4 @theme token

@theme {
  --color-lime-300: oklch(0.897 0.196 126.7);
}

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

Keep the v3 colour in v4

@theme {
  --color-lime-300: #bef264;
}

Related

← All Tailwind v3 to v4 colors