What this tool does
Good text colour is not a matter of taste. It is a matter of contrast: how far apart the text colour and the background colour sit on the brightness scale. If they are too close, people with low vision cannot read your page, and everyone else strains to read it. This tool finds a text colour that passes the WCAG AA standard of 4.5:1 for normal body text.
Pick a background colour and, if you have one, a brand colour. The tool first tests plain white and plain black text. If one of them passes, it gives you that answer, because plain black or white is the clearest choice. If neither passes, it lightens or darkens your brand colour step by step until the result passes AA.
How to use it
Use the colour picker to set your background, or type a hex code like #336699. Then set your brand colour if you have one. The result updates as you change the colours, so you can drag the picker and watch the ratio change live. The preview box shows your text on your background exactly as a reader would see it.
The bar under the preview shows the contrast ratio on a scale up to 21:1, which is the maximum possible (black on white). The tool also tells you whether the result passes AA (4.5:1) or the stricter AAA level (7:1).
Worked example: a blue background
Take a background of #336699, a mid blue. White text on it gives a contrast ratio of about 6.0:1, which passes AA and is close to AAA. Black text on the same blue gives only about 3.5:1, which fails AA for body text. So the tool answers: use white, #ffffff, on #336699.
Now take a light yellow background, #f5e6a3. White text gives about 1.4:1 and black text gives about 14:1, so the tool answers black. The rule is simple: dark backgrounds take light text, light backgrounds take dark text, and the middle ground is where your brand colour needs adjusting.
Where this matters
Website body text is the main use, but the same check applies to buttons, form labels, chart labels, slide decks, email headers, and app screens. Designers use it when a brand colour looks good as a background but the text on top is hard to read. Developers use it before shipping a new theme. Teachers use it for slides that must be readable from the back of a room.
Honest limitations
This tool checks colour contrast only. It does not check font size, line spacing, or whether the text is clear in other ways. Large headings only need 3:1 under WCAG, so a colour that fails for body text can still be fine for a big heading. The tool also assumes normal vision plus the AA model; it cannot test for every type of colour blindness, and it does not test text over photos or gradients, where contrast changes across the image.
Frequently asked questions
What is a contrast ratio?
It is a number from 1:1 (no difference at all) to 21:1 (black on white). It comes from the relative brightness of the two colours. A higher number means the text stands out more.
What does AA mean?
AA is the middle level of the WCAG accessibility standard. Normal text needs 4.5:1 and large text needs 3:1. Most accessibility laws and company policies ask for AA.
What does AAA mean?
AAA is the strictest level: 7:1 for normal text and 4.5:1 for large text. It is a good target, but it is hard to reach with brand colours, so AA is the usual requirement.
Why does the tool prefer black or white first?
Because plain black or white gives the strongest contrast on most backgrounds, and it keeps your design simple. Your brand colour is used only when neither plain option passes.
También disponible en español: Vocabulario en español

Pingback: Encontrar un Color de Texto Accesible para un Fondo – Gratis en Línea