Enter Foreground and Background Colors
Add text and background colors as hex values in the WCAG color contrast checker. The preview shows how the combination appears in real use.
Use this WCAG color contrast checker to test foreground and background color combinations for readability. Enter hex colors, view the contrast ratio, and check WCAG AA and AAA pass status for normal text, large text, and interface design.
Workspace
Use the tool below. Your inputs stay local when the tool supports browser-only processing.
The quick brown fox jumps over the lazy dog.
Small text sample for visual comparison.
Last reviewed: · Testing methodology
Workflow
Add text and background colors as hex values in the WCAG color contrast checker. The preview shows how the combination appears in real use.
The WCAG color contrast checker calculates the contrast ratio and marks whether it passes normal text, large text, and interface contrast recommendations.
Change either color until the ratio passes your target level. Use the WCAG color contrast checker while designing buttons, text, links, and UI states.
The component linearizes sRGB channels, calculates relative luminance for each color, and divides the lighter and darker values according to the WCAG contrast formula.
Use actual foreground and composited background colors. Check every interactive state, not just the default state.
Use browser accessibility tooling and manual testing for gradients, opacity, images, forced-colors mode, and complete interface audits.
| Option | Best for | Trade-off |
|---|---|---|
| This browser tool | Quick, private, one-off work | Limited by browser memory and the documented feature set |
| Desktop or command-line tool | Batch jobs and repeatable automation | Requires installation and setup |
Reviewed by the Free Online Tools Nest Team on 2026-08-26. The interface, output path, and documented limitations were checked against the current implementation. See our testing methodology for the review process.
Read the testing methodologyA WCAG color contrast checker measures the luminance contrast between foreground and background colors. The result helps determine whether text is readable for users with low vision.
WCAG AA is the common accessibility target for most websites, while AAA is stricter. This checker shows both so you can choose the level that fits your design and compliance goals.