๐Ÿ‘ Color Contrast Checker

WCAG color contrast checking tool. Enter foreground and background colors to calculate contrast ratio and check against WCAG 2.1 AA/AAA accessibility standards. Supports hex, RGB, HSL and color names. Fully client-side.

WCAG 2.1 ยท AA/AAA ยท Client-side

๐ŸŽจ Foreground

๐ŸŽจ Background

21.00:1
Contrast Ratio
AA Normal: โœ“
AAA Normal: โœ“
AA Large: โœ“
AAA Large/UI: โœ“
StandardLevelMin RatioDescriptionStatus

๐Ÿ“ Sample Text Preview

Sample Heading Text

This is a body text sample. WCAG AA requires at least 4.5:1 for normal text and 3:1 for large text (18px bold or 24px+).

Small auxiliary text example (under 18px)

About WCAG Color Contrast

The Web Content Accessibility Guidelines (WCAG) 2.1 define minimum contrast ratios to ensure that users with visual impairments (including color blindness and low vision) can read content clearly.

Contrast Levels Explained

Recommendations

Always aim for AA compliance (minimum legal requirement in most regulations). Strive for AAA when possible. In dark mode designs, pay special attention to light text on dark backgrounds. Use this tool throughout your design process.

โ“ FAQ

What is contrast ratio?

Contrast ratio is the difference in relative luminance between two colors, ranging from 1:1 (identical) to 21:1 (black on white). WCAG uses the relative luminance formula defined for the sRGB color space.

What counts as "large text"?

Per WCAG, large text is at least 18pt (โ‰ˆ24px) bold or 24pt (โ‰ˆ32px) regular. Large text has more relaxed contrast requirements due to its larger size.

Do UI components need contrast too?

Yes. WCAG 2.1 AA requires UI components (button borders, form controls, icons) to have at least 3:1 contrast against adjacent colors.

What color formats are supported?

Supports HEX (#RRGGBB, #RGB), RGB/RGBA, HSL/HSLA formats, plus common color names (red, blue, white, black, etc.). Transparent is treated as black.

What if contrast is insufficient?

Darken the foreground or lighten the background to improve contrast. Use the color pickers to adjust โ€” results update in real time. Dark text on light backgrounds or light text on dark backgrounds work best.