Color Contrast Checker (WCAG)

Your files are never sent to a server · processed only in this browser

#fff · rgb(47 111 99) · hsl(169 41% 31%) — any of these works

Result

HEX
—
RGB
—
HSL
—

Contrast ratio (WCAG)

—

This is how text looks in that pair

Cafe Haru opening hours Weekdays 09:00 – 22:00 · closed Mondays

Color palettes Six moods · copy as CSS variables

Questions

Is large text judged differently?

Yes. Text at 18pt (about 24px) or 14pt bold and above passes AA at 3:1. Body-size text needs 4.5:1.

Does this apply to icons and buttons?

Graphical elements like icons and input borders need 3:1 against their background.

How is the ratio calculated?

From the relative luminance of each color: (lighter + 0.05) ÷ (darker + 0.05), exactly as WCAG defines it.

More tools

Esc