Color Converter & Contrast Checker

Convert colors between HEX, RGB and HSL, and check text contrast against WCAG.

Convert a color

HEX—
RGB—
HSL—

Contrast checker (WCAG)

Large text 24px

Normal text — the quick brown fox jumps over the lazy dog.

— contrast ratio

What the badges mean

Contrast runs from 1:1 (identical) to 21:1 (black on white). AA, the usual standard, needs 4.5:1 for normal text and 3:1 for large text (18pt+, or 14pt bold). AAA needs 7:1 and 4.5:1. Transparent text is blended onto the background first, as the browser would.

Runs in your browser. Nothing is uploaded or tracked.