Contrast Ratio Checker

Select a text and background color combination to instantly check the contrast ratio based on WCAG 2.1/2.2. An essential tool for ensuring web accessibility compliance.

Contrast Ratio: N/A
Normal Text (Small)

This text is normal size (16px). WCAG requires a contrast ratio of AA 4.5:1 / AAA 7:1.

AA (≥ 4.5:1) N/A
AAA (≥ 7:1) N/A
Large Text

This text is large size (24px). WCAG requires a contrast ratio of AA 3:1 / AAA 4.5:1.

AA (≥ 3:1) N/A
AAA (≥ 4.5:1) N/A

Accessibility Information & How to Use

Why Does Contrast Ratio Matter?

The contrast ratio between text and background colors on websites and applications directly impacts readability for all users, not just those with visual impairments such as low vision or color vision deficiencies. Insufficient contrast can make text difficult to read and prevent important information from being communicated effectively. This is especially pronounced in certain conditions, such as using a mobile device in bright sunlight.

Ensuring adequate contrast ratios is a fundamental requirement of web accessibility and is essential for making information available to as many people as possible.

About the WCAG (Web Content Accessibility Guidelines) Standards

WCAG is an international set of guidelines for making web content more accessible. Regarding contrast ratios, the following success criteria are defined (WCAG 2.1 and 2.2):

* Point (pt) sizes differ from CSS pixel (px) values. As a rough guide, 18pt is approximately 24px and 14pt is approximately 18.66px. In the preview above, "Normal Text" is displayed at 16px and "Large Text" at 24px.

This contrast ratio checker shows real-time conformance results as "Pass" or "Fail" based on the colors you enter.

How to Use This Tool & Its Benefits

Tips for Improving Contrast Ratios

For more information, refer to the WCAG 2.1 specification and the latest WCAG 2.2 specification.

Q: Does this tool support WCAG 2.2?

A: Yes, it does for text contrast ratio checking. In WCAG 2.2, the success criteria for text-to-background contrast ratios (Success Criterion 1.4.3 Contrast (Minimum) and 1.4.6 Contrast (Enhanced)) remain unchanged from WCAG 2.1. Therefore, the text contrast evaluation results shown by this tool also comply with WCAG 2.2.

However, WCAG 2.2 introduces new success criteria such as "2.4.11 Focus Appearance" and "2.5.8 Target Size (Minimum)." Additionally, "1.4.11 Non-text Contrast" from WCAG 2.1 remains an important requirement. This tool does not include functionality to evaluate contrast or visual aspects of non-text elements or UI components.

Q: What are the main changes related to contrast in WCAG 2.2?

A: To reiterate, the contrast ratio threshold values for text and background colors have not changed.

Key changes in WCAG 2.2 include the addition of "2.4.11 Focus Appearance (AA)," which improves the visibility of keyboard focus indicators, and "2.5.8 Target Size (AA)," which ensures minimum click/tap target areas. While these are not direct color contrast criteria, they are important updates for overall visual accessibility. The "1.4.11 Non-text Contrast (AA)" requirement introduced in WCAG 2.1 also remains in effect in 2.2.

Q: What is "Non-text Contrast"?

A: It applies to non-text UI components and graphics, such as button borders, input field outlines, visual indicators for checkboxes and radio buttons, focus indicators, and visual elements needed to understand charts and diagrams.

These elements must have a contrast ratio of at least 3:1 against adjacent background colors so that users can identify what they are and their current state (e.g., focused, selected). This is defined in WCAG Success Criterion 1.4.11 Non-text Contrast (AA).

Q: Does this tool only check text contrast?

A: Yes, this tool is specifically designed to evaluate the contrast ratio between text color and background color (WCAG 1.4.3 and 1.4.6).

It does not include functionality to check non-text element contrast (WCAG 1.4.11), focus appearance (WCAG 2.4.11), or target size (WCAG 2.5.8). To evaluate the accessibility of those elements, you will need to use other specialized tools or perform manual checks.

Q: What should I do if the result is "Fail"?

A: Adjust the text color, background color, or both until the contrast ratio meets your target level (for AA: 4.5:1 for normal text and 3:1 for large text; for AAA: 7:1 and 4.5:1 respectively).

Generally, increasing the difference in lightness between two colors will improve the contrast ratio. You can adjust colors using the color picker or hex code input field while seeing the results update in real time.

External Guidelines & Attribution

This site references and quotes portions of the following guidelines to supplement its explanations.

Quoted content is used solely to promote understanding of the guidelines, with proper attribution and licensing clearly stated to comply with the applicable license terms.

ABOUT US

This Contrast Ratio Checker is a tool for verifying the readability and legibility of headings, body text, buttons, and other elements by their numerical contrast values. AMIX, the operator of this tool, takes a comprehensive approach to design — considering contrast, font sizes, line spacing, and more — to create accessible and readable materials.

Related Color Tools