Skip to content
NationFrame Tools

Color

WCAG Contrast Calculator

Calculate the WCAG relative luminance contrast ratio between two hexadecimal colors.

Advertisement

Result

Enter your values to begin.

Advertisement

How to Use This Tool

Enter the labeled inputs for WCAG Contrast Calculator. Results update as valid input changes. Use the action button to recalculate or generate a fresh value, then Copy result if needed.

Formula / Calculation Method

Linearize sRGB channels, compute relative luminance as 0.2126R + 0.7152G + 0.0722B, then divide (lighter+0.05) by (darker+0.05).

Example: black against white has contrast 21:1.

Frequently Asked Questions (FAQs)

Is WCAG Contrast Calculator free?

Yes. This tool is free to use and requires no account or signup.

How does WCAG Contrast Calculator work?

Linearize sRGB channels, compute relative luminance as 0.2126R + 0.7152G + 0.0722B, then divide (lighter+0.05) by (darker+0.05).

Are my inputs stored?

This tool processes input in your browser without sending calculation data to WordPress. Refreshing the page clears the tool state. Copying or printing a result saves it only where you choose.