Color Converter

Convert a color between HEX, RGB and HSL, then check how readable white or black text is on top of it. Runs entirely in your browser.

RGB—
HSL—
White text sample Aa
Black text sample Aa
Pick a color to begin.

Accepts #abc, #aabbcc or rgb(147, 51, 234). Contrast values follow the WCAG relative-luminance formula; 4.5:1 is the AA threshold for normal text.