Who this helps
- Designers choosing text colors
- Developers checking light and dark themes
Developer Utility
Calculate the contrast ratio between text and background colors and verify whether the combination passes WCAG AA and AAA accessibility standards.
Enter text and background colors using HEX codes or select them with the color picker.
This sample text helps visualize how text appears on a background in a real interface. Useful for checking content areas, buttons, cards, banners, and dark mode color schemes.
Review the calculated contrast ratio and WCAG accessibility compliance.
Enter colors and click Check Contrast.
The accessibility report will appear here.
Different accessibility requirements apply depending on text size and compliance level.
Body text, labels, menus, and descriptions generally require at least a 4.5:1 contrast ratio.
Large headings and bold text can meet AA requirements with a lower 3:1 ratio.
Check readability when selecting colors for buttons, badges, cards, forms, and other interface elements.
Compare a foreground and background HEX color, then read separate WCAG AA and AAA results for normal and large text. Use this when checking body copy, labels or text on buttons.
Enter two opaque 3- or 6-digit HEX colors, or use the color pickers.
Run the contrast check.
Read the normal-text or large-text result appropriate to the real font.
After editing a HEX value, check again before copying the report.
Swapping the two colors produces the same ratio.
The unrounded value is about 4.4781. Passing normal AA requires at least 4.5; the displayed rounding does not determine the verdict.
The browser linearizes sRGB channels, calculates relative luminance, and divides the lighter luminance plus 0.05 by the darker plus 0.05. Normal-text AA/AAA thresholds are 4.5/7; large-text thresholds are 3/4.5. Display uses two decimal places, while pass/fail uses the unrounded ratio.
Color values are calculated in browser memory without an upload or saved history. Copy exports the checked colors, ratio and verdicts.
Build a background, then check colors beneath the text.
Plan responsive text sizes.
WCAG describes at least 18pt regular or 14pt bold text, approximately 24 CSS px or 18.67 CSS px bold. Check the real font size and weight.
No. Determine the final opaque color after compositing it with the background, then enter that HEX value.
A typed color change invalidates the old result. Run the check again so the copied report matches the current colors.