Color and Contrast Checker

View HEX colors as RGB and HSL and calculate text/background WCAG contrast ratios.

Tool details

Processing and privacy
🔒 Your files never leave your device – processing happens in your browser.
Output format:
JSON

Review your results; support depends on the file and its encoding. How it works and limitations

View HEX colors as RGB and HSL and calculate text/background WCAG contrast ratios.

How to use Color and Contrast Checker

  1. HEX (3 / 6)
  2. Set the options above and press the action button.
  3. Check the result and save it using Download.

Example

Content and tool behavior checked:

Example
Your textResult text
HEX (3 / 6)JSON (HEX, RGB, HSL, contrast)
#000000 / #FFFFFF21:1; AA / AAA

Related tools

Frequently asked questions

How to use Color and Contrast Checker

Enter separate HEX values for text and background. Inspect the ratio and normal-text AA result; use the action button to save RGB, HSL and detailed contrast results as JSON.

Link to this answer

Are my files or typed text uploaded?

Files and text stay in your browser; nothing is uploaded.

Link to this answer

Is an AA or AAA result a complete accessibility audit?

3- or 6-digit HEX; no alpha. WCAG 2 contrast for solid sRGB colors. Normal text: AA 4.5:1, AAA 7:1; large text: AA 3:1, AAA 4.5:1. Large text means at least 18 pt or bold 14 pt. This does not audit all website accessibility.

Link to this answer

Related tools