Text Color Finder
Pick a background color. The tool scans a curated palette of 37 colors and tells you which ones pass WCAG AA (4.5:1) and AAA (7:1) as text on it — and, if your brand color fails, the closest passing alternative.
Best pick
How the palette scores on this background
Live preview — best pick on your background
The quick brown fox jumps over the lazy dog. This paragraph is rendered in the best-pick color on your background, so what you see is what the top result actually looks like.
Your brand color
AAA colors (≥ 7:1) — safe for any text size
| Text color | Ratio | Level |
|---|
AA colors (4.5–7:1) — fine for normal text
| Text color | Ratio | Level |
|---|
Large-text-only colors (3–4.5:1) — headings only
| Text color | Ratio | Level |
|---|
Large text means 18pt (24px) or larger, or 14pt (18.66px) bold or larger. Anything below 3:1 is not listed — it fails even the large-text bar.
On white: 9 AAA colors, but the grays run out fast
Against white, the palette splits into 9 AAA, 12 AA, 7 large-text-only and 9 failing colors. The AAA set is almost entirely dark neutrals — black (21.00:1), slate-900 (17.85:1), gray-900 (17.74:1), gray-800 (14.68:1), slate-800 (14.63:1), gray-700 (10.31:1), gray-600 (7.56:1) — plus two hues that are dark enough: green-800 (7.13:1) and purple-700 (7.10:1). Gray-500 at 4.83:1 is the last gray that passes AA at all; gray-400 at 2.54:1 is already a fail. That is the cliff every gray scale hides: one step (500 → 400) drops you from AA to unusable.
The same palette, flipped: dark backgrounds invert the answer
Against #121212 the counts are the same shape — 9 AAA, 6 AA, 11 large-text-only, 11 failing — but the members are the mirror image. White is the best pick (18.73:1), gray-100 (17.02:1) and gray-200 (15.13:1) follow, and the hues that failed on white now lead: blue-300 (10.39:1), amber-500 (8.72:1), green-500 (8.22:1), blue-400 (7.37:1). Meanwhile blue-700, the AA workhorse on white (6.70:1), drops to 2.80:1 on dark — a fail. The lesson is the tool's whole point: a color's accessibility is not a property of the color. It is a property of the pair, and the pair flips when the background does.
Closest alternatives that keep your hue
When a brand color fails, the nearest passing palette color usually keeps the same hue family — it is just a darker or lighter step of it. Blue-400 #60A5FA fails on white at 2.54:1; the closest AA color is blue-600 #2563EB at 5.17:1. Amber-500 #F59E0B fails on white at 2.15:1; the closest AA color is amber-700 #B45309 at 5.02:1. Both fixes are one hue family away, not a different color — which is why "closest by RGB distance" is a useful default, and why the tool shows the ratio next to it so you can judge the trade-off yourself.
How to use the results
- Body text: pick from the AAA list when you can — it removes all size exceptions. The AA list is fine for normal text too.
- Headings: the large-text-only list is legal at 18pt+ (or 14pt+ bold), and only there. Do not let a heading color leak into body copy.
- Brand colors: if your brand color fails, take the closest passing alternative for text and keep the original for large graphics, icons and non-text elements, where the bar is 3:1, not 4.5:1.
- Do not trust "it looks dark enough". Gray-500 (4.83:1) and gray-400 (2.54:1) look one step apart and sit on opposite sides of the AA line. The number is the test.
How the math works
Every ratio uses the same WCAG 2.1 formula as the main contrast checker: relative luminance from linearized sRGB (weights 0.2126 red, 0.7152 green, 0.0722 blue), then (L1 + 0.05) / (L2 + 0.05). Thresholds are inclusive: exactly 7.00:1 is AAA, exactly 4.50:1 is AA, exactly 3.00:1 passes the large-text bar. The "closest alternative" is the palette color with the smallest RGB distance among those reaching AA — a similarity heuristic, not a WCAG rule. No uploads, no tracking: it all runs in your browser.
FAQ
What counts as an AA or AAA text color?
A text color passes AA when its contrast ratio against the background is at least 4.5:1 for normal text (WCAG 1.4.3), and AAA at 7:1 or higher. For large text (18pt+, or 14pt+ bold) the AA bar is 3:1. This tool sorts the palette into exactly those buckets, with inclusive boundaries: 7.00:1 is AAA, 4.50:1 is AA.
Why does my brand color fail on white but pass on dark?
Contrast is a relationship, not a property of one color. A mid-light color such as blue-400 #60A5FA measures only 2.54:1 against white (fail) but 7.37:1 against a #121212 dark background (AAA). The same color is unusable in one place and excellent in the other — which is why the tool checks your color against your actual background instead of rating colors in isolation.
How is the closest passing alternative chosen?
Among palette colors that reach AA (4.5:1) on your background, the tool picks the one nearest to your brand color in RGB space. It is a visual-similarity heuristic, not a WCAG concept: the ratio is the test, the distance is only the tie-break. For example, blue-400 #60A5FA (2.54:1 on white) maps to blue-600 #2563EB (5.17:1), the nearest AA blue.
Why are there only 37 colors in the palette?
The palette is a curated starting set — neutrals plus one family per hue at several steps — chosen so every result is a color a design system actually uses. If your exact brand color is not in it, use the brand-color check: it tells you whether your color passes and, if not, the nearest passing color from the set.
Can I use an AA color for body text and a large-text-only color for headings?
Yes — that is exactly what the 3:1 large-text bar is for. A color in the large-text-only bucket (3:1 to 4.5:1) is legal for headings at 18pt or larger, or 14pt bold and larger, but not for body text. The tool keeps the buckets separate so you do not accidentally use a heading-only color at body size.
Is my color data uploaded anywhere?
No. Everything runs locally in your browser; no colors, no analytics, no tracking.