Free · No sign-up · Browser processing

Color Contrast Checker

Check two HEX colors for WCAG AA and AAA text contrast using the relative luminance formula.

Enter foreground and background on separate lines. Supports opaque 3-digit and 6-digit HEX; alpha, gradients and images need separate evaluation.

STEP 1

Enter or paste your input

The example is ready to edit. Your input stays in this browser.

Processed locally in your browser. Avoid sharing the result if it contains private data.

How to use Color Contrast Checker

  1. Paste your input or load the included example.
  2. Check the input format described above the editor.
  3. Select Check contrast, then inspect the result or any validation message.
  4. Copy or download the output for your workflow.

Format and limitations

Enter foreground and background on separate lines. Supports opaque 3-digit and 6-digit HEX; alpha, gradients and images need separate evaluation.

Example input

#ffffff
#111827

Practical guides

Does this tool upload my input?

The transformation runs in your browser. This tool does not send input to a conversion API. Browser memory limits still apply; split very large inputs into manageable batches.

Browse all developer tools