What contrast ratio do I need for my website?
WCAG 2.2 AA needs at least 4.5 to 1 for normal text and 3 to 1 for large text. Source: W3C: text contrast minimum.
Check how clearly text stands out from its background. We compare your colors with the Web Content Accessibility Guidelines (WCAG), the rules for making websites easier to use.
Enter a hex color, such as #595959 or #fff. The # is optional. Our checker runs in your browser.
7.00 to 1
Results use the full value before rounding. The rules and sources are below.
Large text is at least 24px, or 18.66px bold (14pt). For controls and graphics, compare the parts needed to understand or use them with the colors next to them.
These samples may be hard to read when the chosen colors fail.
Our website should be easy to read.
Our website should be easy to read.
Contrast is the difference in brightness between colors. More contrast helps words stand out. Our website contrast checker compares two solid colors. For transparent colors or photos, test the actual background behind the text.
Faint text can be hard to read with low vision or older eyes. Strong contrast also helps on phones in sunlight. People with color blindness may find some colors hard to tell apart, so a difference in brightness helps. W3C: text contrast minimum
WCAG AA needs 4.5 to 1 for normal text and 3 to 1 for large text. Large means at least 24px, or 14pt bold (about 18.66px). Logo text and disabled buttons are exempt. W3C: text contrast minimum
WCAG AAA asks for stronger text contrast: 7 to 1 for normal text and 4.5 to 1 for large text. W3C: stronger text contrast
Controls and meaningful graphics need 3 to 1 against adjacent colors. This applies to the parts of buttons, form borders, icons and charts needed to identify or understand them. Disabled controls are exempt. Button text still follows the text rules. W3C: controls and graphics contrast
Light gray text and pale placeholder text can disappear into white backgrounds. Text on photos needs enough contrast at its hardest spot to read. Colored buttons need readable labels as well as a clear shape or other visual cue. Check each color combination. W3C: text contrast minimum. W3C: controls and graphics contrast
Change the text or background color in your website styles. If a color is shared across the site, update its shared setting so the change reaches every place that uses it. Check links, buttons and form fields in their usual, hover and keyboard focus states. For text on photos, add a solid background behind the words or darken the image area. Then test the colors again.
WCAG 2.2 AA needs at least 4.5 to 1 for normal text and 3 to 1 for large text. Source: W3C: text contrast minimum.
Text within a logo or brand name is exempt from the text contrast minimum. The rest of the page still needs readable text. Source: W3C: text contrast minimum.
Yes. Placeholder text inside a form field needs enough contrast too. Keep a visible label outside the field so its purpose stays clear when someone types. Source: W3C: text contrast minimum.
Yes. Copy the address after choosing your colors. Opening it brings back the same text and background colors.
No. Contrast is one of many checks. Our free grade checks your website against WCAG 2.2 AA and shows the problems our software finds. Use the button below to get your free grade.
Contrast is one part of website accessibility. Get our free grade to see the problems our software finds across your site.
Get your free grade