Accessibility data

The contrast matrix

Of the 64,262 ordered pairs you can make from the 254 colors in this library, 8,930 clear WCAG AA for normal text. That is 13.9 percent. Pick a background below to see exactly which ones, at which ratio.

14 of 254 pass on Cobalt
White on Cobalt5.17:1#FFFFFF
Snow on Cobalt5.00:1#FFFAFA
Cream on Cobalt4.97:1#FFFDD0
Off White on Cobalt4.91:1#FAF9F6
Ghost White on Cobalt4.89:1#F8F8FF
Cornsilk on Cobalt4.85:1#FFF8DC
Fog on Cobalt4.84:1#F7F7FB
Yellow on Cobalt4.81:1#FFFF00
Old Lace on Cobalt4.77:1#FDF5E6
White Smoke on Cobalt4.74:1#F5F5F5
Beige on Cobalt4.67:1#F5F5DC
Linen on Cobalt4.60:1#FAF0E6
Celeste on Cobalt4.59:1#B2FFFF
Lemon on Cobalt4.51:1#FFF44F

What this tells you

The number that surprises most people is how low 13.9 percent is. Two colors picked at random from a curated, tasteful palette clear AA for body text less than half the time. Contrast is a function of luminance, and most palettes cluster their colors in the middle of the luminance range, where nothing contrasts with anything.

That is also why a palette needs a light end and a dark end before it needs more hues. If every color in a set sits between 40 and 60 percent lightness, no amount of hue variety will make the set accessible.

The five hardest backgrounds in this library

These have the fewest library colors that pass AA as text on them.

BackgroundColors passing AABest availableOn white
Burnt Orange1 of 253Black, 4.87:14.31:1
Forest Green1 of 253Black, 4.78:14.39:1
Cerise1 of 253Black, 4.73:14.44:1
Light Brown1 of 253Black, 4.84:14.34:1
Red2 of 253Black, 5.25:14.00:1

The five most forgiving backgrounds

BackgroundColors passing AABest availableOn ink black
Black176 of 253White, 21.00:11.10:1
Ink Black170 of 253White, 19.14:11.00:1
Eerie Black152 of 253White, 17.22:11.11:1
Navy143 of 253White, 16.01:11.20:1
Dark Blue136 of 253White, 15.30:11.25:1

How it is calculated, and its limits

Every ratio uses the WCAG relative luminance formula, unchanged between WCAG 2.1 and 2.2. It is a luminance calculation, not a perceptual model: it says nothing about whether two colors of similar luminance are distinguishable, and nothing about how a combination reads for someone with a color vision deficiency. A pair can clear 7:1 and still be a poor choice. See the methodology for the full formula and what it does not model.

No pair gets its own page. Generating 64,000 near-identical URLs is the fastest way to teach a search engine that a site is not worth crawling, and the data is more useful filterable than paginated.

Related

Last updated by FusionStudios. Every value on this page is computed by the same functions the tools use. How this is calculated.