Contrast checker. See whether your text is readable on its background, and get the nearest colour that passes.
How it works
Pick two colours
Enter the text colour and the background, or paste any CSS colour.
Read the result
The ratio and a pass or fail for body text, large text and interface parts.
Fix it in one click
If it fails, take the closest text colour that passes and keeps its hue.
Questions
What contrast ratio do I need?
WCAG AA asks for 4.5:1 for body text and 3:1 for large text and interface parts such as icons and input borders. AAA asks for 7:1 and 4.5:1.
What counts as large text?
24px and up, or 18.66px and up when bold (18pt, or 14pt bold).
Does it handle colours with transparency?
Yes. A semi-transparent text colour is blended onto the background first, which is what the browser shows.
More design tools
- Colour converter: HEX, RGB, HSL and OKLCH, both ways.
- Colour scale: One colour into a 50 to 950 scale for CSS or Tailwind.
- Colour blindness check: Your palette under four types of colour blindness.