Color contrast checker online
Check the color contrast
Contrast:
Proportion:
Checking with a quote
"When Halley's Comet flew by, it seemed to me it looked back at us and laughed."
Lina Kostenko
592
How does Contrast Checker work?
Hello! The task of the color contrast checker is to verify whether two colors have sufficient contrast. Color contrast plays an important role in ensuring text readability and the perception of essential elements on a web page. This page provides you with the opportunity to check the contrast between the background color and the text, so you can ensure that your content is easily readable even for people with different visual abilities.
To determine contrast, brightness values (which are defined as the sum of three primary colors - red, green, and blue) of each color are used. Using these values, contrast is calculated using a formula that takes into account the difference in color brightness.
The calculation results in a number ranging from 1 to 21, indicating the level of contrast between the colors. The best result is 21, which signifies maximum possible contrast. Our color contrast check employs a ratio to measure contrast between two colors. It is defined as the ratio of the brightness (measured on a scale from 0 to 255) of the text to the background. When using the Color Contrast Checker, you input the brightness values of the text and background, and then obtain a result in the form of a ratio. This number indicates how contrasty the colors are. Generally, higher ratio values indicate better contrast. According to the web standard WCAG (Web Content Accessibility Guidelines), the minimum recommended ratio for general text is 4.5:1, while for headings and larger text used to denote important elements, the recommended ratio is 3:1.
The color contrast checker can help you choose colors that have sufficient contrast to ensure comfortable content viewing on a web page for all users, regardless of their visual abilities. Some tools may also recommend colors with appropriate contrast levels to enhance content accessibility on a web page. We hope that the Contrast Checker will assist you in setting the text contrast correctly on your page, making it easily readable for all users. We also recommend using our palette generator and color converter, which allow you to create the perfect color palette for your projects and convert HEX colors into popular formats.