Accessible Text Color Picker
Enter a background colour and the contrast level you need. The tool tells you whether black or white is better and can fix your own text colour with the smallest change.
Use the tool
Loading the tool…
About Accessible Text Color Picker
Find a text colour that is readable on a background colour. Enter the background colour, choose the contrast you need, and, optionally, enter your preferred text colour. The tool suggests a text colour that meets the contrast level.
Worked example
Enter a blue background, such as #3b82f6, and ask for the standard contrast level. The tool suggests a text colour that stays readable on it.
Limits
The check measures contrast only. Text size and weight also affect readability, so test the result in the layout where it will appear.
How to use Accessible Text Color Picker
- Enter the background colour.
- Choose the contrast level you need.
- Optionally enter your preferred text colour.
- Read the result and copy the colour.
Good to know
- AA needs 4.5:1 for normal text and 3:1 for large text. AAA needs 7:1 and 4.5:1.
- Large text means 18 pt (24 px), or 14 pt (about 19 px) bold.
- Your colour keeps its hue and saturation. Only the lightness changes, in whole points, until it passes.
- Contrast is not the only thing that matters. Thin fonts and small sizes need more than the minimum.
Frequently asked questions
Why does the tool say black on some blues and white on others?
It picks whichever has the higher contrast ratio on that background. For mid-tone backgrounds both can be close.
What if neither black nor white passes?
Then no text colour reaches that level on that background. Change the background colour or lower the level you need.
Does this follow WCAG 3 or APCA?
No. It uses the WCAG 2 contrast ratio, which is the one most laws and checkers use today.