AI Tools Free

Color Contrast Checker

Check the WCAG 2 contrast ratio between an opaque text color and background. This online color contrast checker shows AA and AAA outcomes for normal and large text.

Free to useNo sign-upRuns in your browser
Enter your details

Enter the inputs, then select Check contrast.

Your result
Enter your details

Result will appear here

How Color Contrast Checker works

The checker converts two opaque hexadecimal colors to relative luminance and compares their unrounded contrast ratio with the displayed thresholds.

The displayed ratio is rounded to two decimal places. The normal and large text outcomes describe this color pair; they do not certify the accessibility of a whole page.

Enter a three digit or six digit hexadecimal color for each field.

Reference: W3C: Contrast minimum.

Light and dark text/background pairs connected for contrast comparison.
Illustration of the Color Contrast Checker workflow.

How to use Color Contrast Checker

Enter the opaque text color and the opaque background color used together in the component.

Set the actual opaque pair

Enter the hexadecimal text color and the solid background immediately behind it. Use the component values rather than a nearby border or panel color. Alpha and image backgrounds are outside this pair calculation.

Text hex color
Color Contrast Checker native input panel with the actual Text hex color, Background hex color settings used for this example.
Configure Text hex color, Background hex color; select Check contrast.

Calculate the contrast ratio

Run the checker and inspect the ratio and color-pair preview. The ratio shown is rounded for display, while threshold checks use the full calculated value.

4.48:1
Color Contrast Checker actual result panel showing 4.48:1.
Submitted result: 4.48:1. AA normal text (4.5:1): Fail.

Read the relevant text outcomes

Review AA and AAA for normal and large text separately, using the actual font size and weight. The supporting rows describe this pair; the note does not certify the rest of the interface.

Output details
Color Contrast Checker actual output details region and result note after submitting the pictured settings.
Review the actual Color Contrast Checker output. Read the result note.

When to use Color Contrast Checker

A pairwise contrast result helps evaluate a defined text treatment before checking the full interface.

Check body text color contrast

Test body copy against the page background before adding it to a style guide. Use the normal text outcome unless the rendered text qualifies as large. A heading label in the design file does not determine its contrast category.

Website page details represented by connected information cards.
Prepare the page details. Concept illustration.

Check a button label

Enter the label color and the solid button fill to inspect that state. Repeat for each fill used by hover or focus. If the button has a gradient, identify the colors behind the letters separately instead of treating one endpoint as the whole background.

Website information shown in two conceptual preview formats.
Review a working example. Concept illustration.

Compare muted text choices

Test alternative colors for secondary information such as captions or counts. Record which pair each result refers to so the design discussion stays tied to a specific background. Contrast alone does not decide whether the information is visually prominent enough.

A website document and related pages connected in a workflow.
Continue your site workflow. Concept illustration.

Read WCAG AA and AAA text contrast thresholds

Match each threshold result to the text size or interface element you intend to check.

The displayed ratio is rounded to two decimal places, while pass or fail uses the unrounded value. A ratio displayed near a threshold can therefore look equal to it while still failing.

AA requires 4.5 for normal text and 3 for large text; AAA requires 7 and 4.5 respectively. These labels describe this color pair, not a certification of the entire page.

Website output represented alongside a review preview.
Understand the generated result. Concept illustration.

Check unsupported backgrounds

Choose the actual foreground and background colors before applying the result to a design.

Enter a three digit or six digit hexadecimal color for each field. Alpha colors, images, and gradients are not modeled here, so first determine the resulting opaque colors behind the text.

If a passing pair remains difficult to read, inspect font size, weight, spacing, and the surrounding layout. The tool does not audit keyboard access, alternative text, semantics, or other accessibility requirements.

Page details reviewed before use in a website.
Review before using it on a site. Concept illustration.

Color Contrast Checker: common questions

Answers about using Color Contrast Checker and understanding its results.

Does a pass mean my whole page is accessible?

No. It checks one opaque text/background color pair only.

Are rounded results used for pass/fail?

No. Threshold checks use the unrounded ratio.

Can I test a translucent color?

Alpha is not modeled here. Determine the resulting opaque foreground and background before entering the pair.

Can this check a gradient background?

This calculation accepts two opaque hexadecimal colors. A gradient has different colors at different positions, so one endpoint does not describe the whole background.

Check text and background color contrast

Enter the opaque text color and the opaque background color used together in the component.

Check a color pair