Color Contrast Checker
Compare two opaque HEX colors for normal and large text. Swap, try twelve pairs, and save or recall a local color history.
Enter foreground and background with the pickers or 3/6-digit HEX fields. Compare the unrounded sRGB luminance ratio: AA 4.5 for normal text and 3 for large text; AAA 7 and 4.5.
The quick brown fox jumps over the lazy dog
Color pair preview; font size here does not select a text category.
Text thresholds only; this does not certify a control or page.
Presets
History
Method and limits
Enter foreground and background with the pickers or 3/6-digit HEX fields. Compare the unrounded sRGB luminance ratio: AA 4.5 for normal text and 3 for large text; AAA 7 and 4.5.
Only opaque sRGB HEX is accepted, including shorthand with or without #. Large text means at least 18pt regular or 14pt bold, or equivalent CJK size. Transparency, gradients, adjacent control colors, focus and entire pages are not assessed.
This calculation has no upload call in the selected source. Save stores up to 20 valid pairs in this browser’s localStorage; Clear removes that key. Storage can be unavailable. This is not a whole-site privacy or offline guarantee.
Copied
Copy failed. Select the result and copy it manually.
Popular Tools
About Color Contrast Checker
Compare two opaque HEX colors for normal and large text. Swap, try twelve pairs, and save or recall a local color history.
Black #000000 on white #ffffff gives 21.00:1 and meets all four displayed text thresholds. A displayed 4.50 may still fall below 4.5 before rounding.
Text thresholds only; this does not certify a control or page.
Use Cases
How to use
Enter the text color as HEX or use the foreground picker.
Enter the background; finish the draft until the invalid message disappears.
Read the ratio and normal/large AA and AAA thresholds separately.
Swap colors or apply a preset, then save a useful valid pair.
Recall a pair, clear local history, or copy the current valid report.
Pro Tips
- Only opaque sRGB HEX is accepted, including shorthand with or without #. Large text means at least 18pt regular or 14pt bold, or equivalent CJK size. Transparency, gradients, adjacent control colors, focus and entire pages are not assessed.
- This calculation has no upload call in the selected source. Save stores up to 20 valid pairs in this browser’s localStorage; Clear removes that key. Storage can be unavailable. This is not a whole-site privacy or offline guarantee.
Troubleshooting
Invalid or incomplete color. Enter 3 or 6 hexadecimal digits.
Enter foreground and background with the pickers or 3/6-digit HEX fields. Compare the unrounded sRGB luminance ratio: AA 4.5 for normal text and 3 for large text; AAA 7 and 4.5.
Clipboard unavailable
Copy failed. Select the output and copy manually.
Frequently Asked Questions
Display rounds to two decimals. A raw ratio of 4.499 is below 4.5, so that threshold fails.
Save uses this browser’s localStorage, limited to 20 pairs. Recall recalculates the ratio; Clear removes history. Browser storage can be blocked.