Contrast Checker
Check the contrast ratio of two hex colors against WCAG AA for body text.
AA for body text is 4.5:1. Large text can pass at 3:1; this page reports the body-text bar.
- 1Enter foreground and background hex.
- 2Read the ratio.
- 3Adjust until it passes.
Contrast
18.42:1
Passes WCAG AA for body text.
Sample sentence for this pair.
About this tool
Compare two hex colors and show the contrast ratio. The bar is WCAG AA at 4.5 to 1 for body text.
- Large text can pass at 3 to 1; this page reports the body-text bar
- The ratio is computed in the tab
- P3 colors are not modeled; use sRGB hex
Questions
- What is AA?
- A common contrast bar for readable text on the web.
- Does it use the network?
- No. The contrast ratio is computed from the two colors you pick.
- Share a pair?
- The fields sync to the query string so you can copy the link.
- P3 colors?
- This page uses sRGB hex.
Ratings
No ratings yet. The average shows after 3 ratings.
Ratings come from people using this tool. Nobody is paid or rewarded for them, and written reviews are checked for spam before they appear, not for whether they are positive.
Related tools
JSON formatterPretty-print JSON with a two-space indent, and show the parse error when the text is invalid.
CSV and JSONConvert a CSV table to JSON, or a JSON table to CSV, keeping commas that sit inside quotes.
Base64Encode text or a file up to 8 MB into Base64, or decode Base64 text back into text.
URL encode and decodeEncode text as a URL query value, or decode percent-escapes back into text.
JWT decoderRead the header, payload, and expiration time of a JSON Web Token.
UUID v4 GeneratorGenerate one version-4 UUID from the browser's random source.
Regex testerTest a JavaScript regular expression against sample text and list the matches.
Cron explainerExplain a five-field cron expression and list the next five run times on this device.