
Enter a text and background color, and the tool will show whether contrast is sufficient. Calculations are based on the international accessibility standard WCAG 2.1, which defines minimum contrast values for different content types.
Contrast ratio
21.00 : 1
Normal text
Sample WCAG 2.1 contrast text
Large / bold text
Sample WCAG 2.1 contrast text
Icon
Readability is the luminance difference between the text color and the background color. The greater the difference, the easier it is to read the text. Too low contrast makes content hard to read - especially for people with vision impairments, older adults, or in difficult lighting conditions (e.g., on a phone in direct sunlight).
According to the World Health Organization (WHO), approximately 2.2 billion people worldwide have some form of vision impairment. In addition, millions have color blindness (about 8% of men and 0.5% of women), and many more experience age-related vision decline.
The tool calculates the contrast ratio using the formula specified in the WCAG 2.1 (Web Content Accessibility Guidelines) - international digital accessibility guidelines. The result allows an objective assessment of whether colors are readable enough, regardless of monitor settings or individual color perception.
Checking readability takes just a few seconds:
Hexadecimal format - the most common in web design. Starts with # and contains 3 or 6 characters (digits 0-9 and letters A-F).
#fff - white (shorthand)#ffffff - white (full form)#1a73e8 - blueContrast ratio
8.59:1
Normal text
Sample normal text
Large text
After entering colors, the tool displays results in three sections:
Green indicator means the requirement is met. Red indicator means contrast is too low and needs improvement.
The tool shows the contrast ratio on a scale from 1:1 (no contrast) to 21:1 (maximum contrast - black on white). The result is compared against thresholds defined in the WCAG standard:
Level AA is the minimum required by digital accessibility regulations in many countries, including the EU Web Accessibility Directive. Level AAA provides better readability but is not always practical to achieve for all elements.
If contrast is too low, you don't need to search for the right color by trial and error. The Match feature automatically finds a text color variant that meets the selected contrast threshold.
How matching works:
The algorithm preserves the hue and saturation of the original color, changing only the lightness. The suggested color stays consistent with the visual identity while meeting the accessibility standard.
| Funkcja | Level AA (minimum) | Level AAA (enhanced) |
|---|---|---|
| Normal text - min. 4.5:1 | ||
| Normal text - min. 7:1 | ||
| Large / bold text - min. 3:1 | ||
| Large / bold text - min. 4.5:1 | ||
| Icons and UI elements - min. 3:1 | ||
| Legally required (EU directive) | ||
| Recommended for key content |
Readability matters everywhere someone needs to read text or recognize a UI element:
Color blindness affects about 8% of men and 0.5% of women. People with color blindness may have difficulty distinguishing certain color pairs, even if the luminance contrast is sufficient.
Most common types of color blindness:
This tool checks luminance contrast, which is important for all users. However, when designing, it is also worth avoiding problematic color combinations (e.g., red text on a green background) and not relying solely on color to convey information - use shapes, icons, and text as well.