Color Contrast Checker
Check WCAG accessibility contrast for text. Calculate the contrast ratio between foreground and background colors to ensure your web designs pass AA and AAA standards.
Colors
Preview
Large text (24px bold)
Normal text. The quick brown fox jumps over the lazy dog.
WCAG Result
1.82 : 1
AA · normal text (4.5:1)Fail
AA · large text (3:1)Fail
AAA · normal text (7:1)Fail
AAA · large text (4.5:1)Fail
UI components (3:1)Fail
About this tool
The Color Contrast Checker calculates the contrast ratio between text and background colors. It ensures your design meets WCAG AA and AAA accessibility standards, making your site readable for everyone, including visually impaired users.
How to use it
- Select a background color and text color.
- The tool instantly calculates the contrast ratio.
- Check if it passes AA (4.5:1) or AAA (7:1).
Examples
Black on white
#000000 on #FFFFFF
21:1 (Passes AAA)
Limits and notes
- Calculates based on WCAG 2.2 guidelines.
- Alpha transparency is factored into the calculation.
Frequently asked questions
- What is AA standard?
- A minimum contrast ratio of 4.5:1 for normal text.
- Is passing contrast enough for accessibility?
- No, keyboard navigation and semantic HTML are also required.
Want the details? Read the full guide: Passing WCAG Contrast Without Redesigning.
Related Tools
HTML PreviewLive-render HTML, CSS, and JavaScript in a secure, isolated iframe. Test UI snippets, prototype components, and view results instantly without leaving the browser.
OG PreviewerPreview how links look on social media. Test Open Graph and Twitter Card meta tags for Twitter, Facebook, LinkedIn, and WhatsApp to optimize click-through rates.
JSON ValidatorValidate JSON syntax with detailed error messages. Catch trailing commas, missing brackets, and syntax errors instantly before sending payloads to your API.
JSON FormatterBeautify, validate, minify, and view JSON. Format messy API responses into readable code or compress it to save bandwidth, running safely in your browser.
JSON MinifierCompress JSON to a single line. Remove all unnecessary whitespace and line breaks to reduce payload size for production APIs without altering the underlying data.
JSON ViewerView JSON in an interactive, collapsible tree structure. Easily navigate massive API responses, expand specific nodes, and inspect deeply nested objects or arrays.
XML FormatterFormat and validate XML documents. Add proper indentation, catch malformed tags, and minify XML markup for optimized data transfer in SOAP APIs or RSS feeds.
HTML FormatterBeautify HTML markup. Apply consistent indentation and line breaks to unreadable or minified HTML, making it easier to review, debug, and maintain web pages.