Article · Color systems

Why Blue-600 Passes Contrast but Yellow-600 Doesn’t

In most color palettes, the step number tells you where a color sits in its own scale, not how light it actually looks. That is why blue-600 can pass WCAG contrast on white while yellow-600, the same step, fails.

Nutpakun Tanoobun · · 5 min read

Design systems lean on step numbers as a promise: “use 600 for text on white”, “use 500 for icons”. The promise only holds if every hue at the same step has the same lightness. In most palettes, it doesn’t.

The numbers

Take the 600 step of every hue in the Tailwind CSS v4 default palette and check it against white.

Same step 600, very different contrast on white

From 2.93:1 to 6.44:1 · 8 of 13 hues fail WCAG AA (4.5:1) for body text

AA 4.5:1
indigo-6006.44:1
violet-6005.88:1
blue-6005.26:1
red-6004.76:1
pink-6004.54:1
sky-6004.02:1
teal-6003.66:1
cyan-6003.60:1
orange-6003.59:1
green-6003.22:1
amber-6003.19:1
lime-6003.06:1
yellow-6002.93:1

Tailwind CSS v4 default palette, step 600. Contrast against #ffffff on an sRGB screen, WCAG 2 formula.

Blue-600 passes body-text contrast at 5.26:1. Yellow-600 reaches only 2.93:1, below even the 3:1 minimum for icons and large text. Same step, almost half the contrast.

Why the same step looks different

Our eyes are far more sensitive to green and yellow light than to blue. A fully saturated yellow is naturally bright; a fully saturated blue is naturally dark.

Most palettes are tuned by eye in HSL or RGB, one hue at a time, so each scale looks good on its own. The “L” in HSL is a math value, not what you see: yellow and blue at HSL lightness 50% differ hugely in brightness. When the step numbers are lined up across hues afterwards, nothing forces their real brightness to match.

WCAG contrast is calculated from relative luminance, which follows the same eye sensitivity. So brightness that looks uneven also scores unevenly.

The fix: set lightness first, then hue

Evenhue flips the usual order. Most palettes pick a color, then slide it lighter or darker. Evenhue first decides how bright each step must be, then asks what each hue can do at that brightness.

How it works

  1. One brightness target per step. A neutral gray scale sets the targets. Each step gets a luminance value, the same number WCAG uses to calculate contrast. Steps follow an S-shaped curve, so the middle steps, where text and buttons live, are evenly spaced.
  2. Pin the steps that matter. Three steps are locked to contrast goals on white: 3:1 for icons and borders, 4.5:1 (AA) for text and buttons, and 7:1 (AAA) for long-form text. Each is also checked against APCA (Lc 60, 75 and 90).
  3. Solve lightness per hue. For every hue, Evenhue searches for the OKLCH lightness that hits the step’s luminance target once its color is applied. Yellow ends up with a higher L, blue with a lower one, and their luminance is identical. This is the step Tailwind v4 skips: its colors are written in OKLCH, but L was still chosen by eye.
  4. Fill each hue with as much color as fits. Chroma follows a curve that peaks mid-scale and fades toward white and black, capped at what an sRGB or P3 screen can show at that lightness. Nothing gets clipped.
  5. Bend the hue slightly. Light and dark steps shift a few degrees, so yellow leans warmer as it darkens instead of turning olive. The shift changes the color, not the brightness.

Every column is one brightness, whatever the hue

Turn the color off and each step becomes the same gray across all four hues. Outlined: step 600, 6.2:1 on white for every hue.

In color

In grayscale

Evenhue, 11 steps, chroma intensity 1.5. Gray = a gray with the same WCAG luminance as the color.

On the right, each color is replaced by a gray of the same luminance. Every column turns into a single gray: the hue changes, the brightness doesn’t.

The result

Here are the same 13 hues at Tailwind v4’s hue angles, built with Evenhue as an 11-step scale like Tailwind’s (50 to 950), chroma intensity 1.5, step 600:

Evenhue step 600, the same contrast on every hue

From 6.21:1 to 6.27:1 · 13 of 13 hues pass WCAG AA (4.5:1) for body text

AA 4.5:1
indigo-6006.23:1
violet-6006.22:1
blue-6006.25:1
red-6006.21:1
pink-6006.23:1
sky-6006.21:1
teal-6006.23:1
cyan-6006.27:1
orange-6006.22:1
green-6006.25:1
amber-6006.25:1
lime-6006.27:1
yellow-6006.22:1

Evenhue accent ramps at Tailwind v4’s hue angles, 11 steps, chroma intensity 1.5, step 600. Contrast against #ffffff, WCAG 2 formula.

Every hue lands within 0.06 of the others, and all of them pass AA. Yellow and amber look deeper than Tailwind’s because they have to be: a yellow bright enough to look “yellow” can’t reach 4.5:1 on white. The same evenness holds at every step:

Hue300400500600700
Red1.87:12.63:13.96:16.21:19.84:1
Yellow1.88:12.63:13.95:16.22:19.83:1
Green1.87:12.63:13.95:16.25:19.80:1
Blue1.87:12.62:13.94:16.25:19.83:1

Compare that with the first chart. Tailwind’s 600 step spans 2.93:1 to 6.44:1 across hues. Evenhue’s 600 step spans 6.21:1 to 6.27:1.

That turns contrast into one rule per step, true for every hue:

What this means for your design system

Swap the hue, keep the contrast

One component, one set of step tokens: 50 background, 100 and 700 badge, 600 link and button.

New

Invoice ready

View details Pay now

red600: 6.21:1

New

Invoice ready

View details Pay now

yellow600: 6.22:1

New

Invoice ready

View details Pay now

green600: 6.25:1

New

Invoice ready

View details Pay now

blue600: 6.25:1

Evenhue, 11 steps, chroma intensity 1.5. Same component, four brand hues.

Numbers: Tailwind CSS v4 default palette (600 step, OKLCH values from theme.css, shown on an sRGB screen) and Evenhue accent ramps (11 steps, chroma intensity 1.5), contrast against #ffffff, calculated with the WCAG 2 relative luminance formula.