Ensure your web content is accessible by checking color contrast ratios against WCAG guidelines. Enter text and background colors to see if they meet AA and AAA standards.
0.00 : 1
Sample Text: The quick brown fox jumps over the lazy dog.
Large Sample Text: The quick brown fox.
Guideline | Normal Text | Large Text (18pt / 14pt bold) |
---|---|---|
WCAG AA | Fail â (Ratio âĨ 4.5) | Fail â (Ratio âĨ 3) |
WCAG AAA | Fail â (Ratio âĨ 7) | Fail â (Ratio âĨ 4.5) |
See the contrast ratio update in real-time as you pick colors.
Clear pass/fail status for WCAG AA and AAA levels for normal and large text.
Easily select colors using HEX input or visual color pickers.
Quickly swap text and background colors with a single click.
See how your chosen color combination looks with sample text.
Designed to help you create more inclusive and accessible web experiences.
Enter the hexadecimal (HEX) color codes for your desired text color and background color in the respective input fields. Alternatively, click the colored square next to the input field to open a visual color picker and select your colors.
Example: For white text on a black background, enter #FFFFFF
for Text Color and #000000
for Background Color.
The contrast ratio between the selected text and background colors will be displayed instantly. A higher ratio means better contrast. You'll also see a live preview of how the text looks on the background.
The "WCAG Compliance Status" table shows whether your color combination passes or fails WCAG AA and AAA levels for both normal text and large text. Large text is defined as 18pt (typically 24px) or 14pt bold (typically 18.66px bold).
Click the "Swap Colors" button to quickly interchange the text and background colors.
Color contrast is a critical aspect of web accessibility. It refers to the difference in lightness (luminance) between the foreground (e.g., text) and background colors. Sufficient contrast makes content readable for everyone, especially users with visual impairments like low vision or color blindness.
The Web Content Accessibility Guidelines (WCAG) provide internationally recognized standards for web accessibility. WCAG defines specific contrast ratios that web content should meet:
This tool helps you verify if your chosen color combinations meet these important accessibility standards, contributing to a more inclusive web for all users.
You're designing a dark mode UI and want to use light gray text on a dark background.
#CCCCCC
(Light Gray)#1E1E1E
(Dark Gray)Your brand color is a medium blue, and you want to use white text on buttons.
#FFFFFF
(White)#007BFF
(Medium Blue)