HEX to RGB Color Converter

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

Can I enter HSL and get HEX?

Input is #HEX or rgb(). HSL is shown as an output.

Does it keep alpha transparency?

If you enter rgba(), only the color is read and the alpha is dropped.

Does 3-digit HEX work?

Yes — #0d9 is read as #00dd99.

More tools

Esc