Color Contrast Checker

Check WCAG contrast ratios for text and background colors, including common HEX, RGB, RGBA, and named CSS colors. Test readability for buttons, surfaces, and labels before you ship.

Sample text preview
Contrast ratio
4.00:1
AA normal text
Pending
AAA normal text
Pending
AA large text
Pending
AAA large text
Pending

How to Read the Result

WCAG contrast compares the visible foreground color against the visible background color. If you use RGBA transparency, the checker composites transparent colors over the page background before calculating the ratio.

For production UI, test the actual text color against every background state where it appears: default, hover, disabled, selected, and error states can all differ.

Quick Ratios

Use case Minimum ratio Notes
Normal text 4.5:1 WCAG AA
Large text 3:1 18pt+ or 14pt bold
Enhanced text 7:1 WCAG AAA

AA and AAA Result Details

WCAG level Normal text Large text Current result
AA 4.5:1 3:1 Pending
AAA 7:1 4.5:1 Pending
UI components 3:1 3:1 Pending

Frequently Asked Questions

What does WCAG AA mean?

WCAG AA is the baseline accessibility target for readable text. Normal text needs at least 4.5:1 contrast.

Can I use HEX values here?

Yes. Paste HEX, RGB, or RGBA values and the checker will calculate the contrast ratio.

How are transparent colors handled?

RGBA colors are composited before the ratio is calculated, because contrast depends on the final visible color, not just the raw color code.

What counts as large text?

Large text means at least 18pt regular text or 14pt bold text. It has lower contrast requirements than normal body text.

Can I share a contrast check?

Yes. Use the copy link button to share the current foreground and background colors without changing the canonical page URL.

Related Color Tools

Open the next tool for this color task.