HEX Color Contrast Checker
Paste or pick hex color codes to instantly check WCAG contrast compliance. Supports #RGB shorthand and #RRGGBB full hex format. Free, private, and runs entirely in your browser.
How to Check HEX Colors
1. Copy a hex code from your CSS, design file, or browser DevTools — common examples: #333333, #F5A623, or shorthand #FFF.
2. Paste it into the foreground field. Paste the background hex code (often #FFFFFF or #1A1A2E) into the background field.
3. The ratio appears instantly. All four WCAG badges update in real time — green for pass, red for fail. If your combination fails, scroll down to see accessible alternatives with the same hue.
Why HEX Color Format Matters for Accessibility
HEX (hexadecimal) is the dominant color format in web development — used in CSS, HTML, JavaScript, and design tokens. Nearly every website's stylesheet defines colors as 6-digit hex codes like #4A90D9.
HEX encodes RGB values in base-16: the first two characters are red, middle two are green, last two are blue. This makes it compact and machine-friendly, but hard to read at a glance — you can't easily tell if #4A90D9 is light or dark without converting it to RGB or HSL in your head.
When auditing accessibility, hex codes are usually what you'll encounter in code reviews. This checker accepts 3-digit shorthand (#F00 = #FF0000), 6-digit full codes, and with or without the # prefix — paste directly from your source code.
Contrast Ratio
URL Scanner
Scan any site for WCAG issues
Pick a seed color and get WCAG-compliant harmonies.
This feature is not yet available. We're actively building it — if you'd like early access or have ideas to share, reach out and we'll prioritize your needs.
Contact Us