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.
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
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
- 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.
- 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).
- 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.
- 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.
- 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
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
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:
| Hue | 300 | 400 | 500 | 600 | 700 |
|---|---|---|---|---|---|
| Red | 1.87:1 | 2.63:1 | 3.96:1 | 6.21:1 | 9.84:1 |
| Yellow | 1.88:1 | 2.63:1 | 3.95:1 | 6.22:1 | 9.83:1 |
| Green | 1.87:1 | 2.63:1 | 3.95:1 | 6.25:1 | 9.80:1 |
| Blue | 1.87:1 | 2.62:1 | 3.94:1 | 6.25:1 | 9.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:
- 400 and lighter stay decorative: backgrounds, fills and dividers.
- 500 passes 3:1 for icons, borders and large text.
- 600 passes AA 4.5:1 for body text and solid buttons.
- 700 and darker pass AAA 7:1.
What this means for your design system
- Token rules get simpler. One contrast rule per step replaces a list of exceptions for yellow, lime and orange.
- Theming is safer. Swap the brand hue and every component keeps its contrast, because the step, not the hue, decides brightness.
- Status colors stay balanced. Danger, warning and success at the same step carry the same visual weight.
- One trade-off. Equal brightness means hue is the only difference between colors at one step. For people with color vision deficiency, pair status colors with icons or labels, or pick steps further apart.
Swap the hue, keep the contrast
One component, one set of step tokens: 50 background, 100 and 700 badge, 600 link and button.
Invoice ready
View details Pay nowInvoice ready
View details Pay nowInvoice ready
View details Pay nowInvoice ready
View details Pay nowNumbers: 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.