>
Hire me

Color Contrast Checker

Calculate WCAG contrast between two opaque colors.

  • Free, no sign-up
  • Runs in your browser
  • 100% private — runs in your browser
Sharjeel Tahir

By Sharjeel Tahir

WordPress & Technical SEO Specialist · Lahore, Pakistan

What do I need to enter?

YOUR RESULT

Ready to use

Use the example inputs or enter your own values.

Your input is processed in this browser.

Calculate WCAG contrast between two opaque colors. Converts sRGB values to relative luminance and calculates the lighter/darker contrast ratio. Update the result, inspect it, then copy or download the output. Reset restores the example inputs so you can start a new calculation.

METHOD

How does this tool work?

Converts sRGB values to relative luminance and calculates the lighter/darker contrast ratio.

Enter text color, background color. Update the result, inspect it, then copy or download the output. Reset restores the example inputs so you can start a new calculation.

Example inputs: Text color: #161a20 · Background color: #ffffff.

BEFORE YOU USE THE RESULT

What are the assumptions and limitations?

Reports AA and AAA text thresholds only. This is not a full accessibility audit; transparency and images are not included.

Common questions

Do I need an account?

No. This tool works in a modern browser with JavaScript enabled. Your inputs are not submitted to a server by the tool.

Can I save the result?

Use Copy for the textual result or Download for a local file. Image tools download a generated image when one is available.

Will it change my live website?

No. It produces a result for you to review. Production changes remain a separate step.

Keep working

Explore related tools for the next part of your website task, or discuss a project if you need help applying the result.

Discuss a project