About the color contrast checker
Enter foreground and background HEX colors to calculate the WCAG relative-luminance ratio. The result is a technical check, not a complete accessibility audit; font size, focus states and non-text controls matter too.
Example
Black on white has a contrast ratio of 21:1; the AA threshold is 4.5:1 for normal text.
How to use it
- Enter the valuesUse the same units and assumptions stated next to each field.
- Run the calculationThe result appears above and is calculated locally in your browser.
- Check before relying on itReview the method and limitations; verify important financial, health or official decisions with an appropriate source.
Privacy and accuracy
This page does not send the values you enter to KRHTech's tool service or save them for later. The result is a convenience calculation and may not include every real-world fee, rule or individual circumstance. Read the Privacy Policy for site-wide details.