Convert HEX to RGB, RGB to HEX, HSL, HSV, and CMYK instantly. Free online colour converter with alpha support, live preview, and WCAG contrast check. No signup.
First time here? Paste or type a colour in any format, or use the picker Your input is processed locally and disappears when you close the tab.
Design hands you a hex code, CSS wants rgba, the brand guide is written in CMYK, and the accessibility audit asks for a contrast ratio. Our free hex to rgb converter turns any one of those into all the others instantly — paste a value in whatever format you happen to have and read every equivalent at once.
There is no direction to pick. The input accepts 3-, 4-, 6-, and 8-digit hex, rgb() and rgba(), hsl() and hsla(), and plain CSS colour names, so it works equally well as an rgb to hex converter, a hex to hsl online tool, or a cmyk converter online. Alpha is preserved wherever the output format supports it, so hex to rgba round-trips exactly. A colour picker and a random button are there for when you are exploring rather than converting.
Every output is one click from your clipboard, and a WCAG 2.1 contrast panel shows immediately whether white or black text will be readable on the colour — the check that usually means opening a second tool. Everything runs in your browser with no uploads. Pair it with our Colour Palette Generator to build a full scheme, the CSS Gradient Generator to blend between colours, or the Image Colour Picker to pull an exact value out of a photo or mockup.
Paste or type a colour in any format, or use the picker
Read the HEX, RGB, HSL, HSV, and CMYK values
Click any value to copy it
Check the contrast panel to see whether white or black text is legible on it
Accepts HEX (3, 4, 6 or 8 digits) · rgb() · rgba() · hsl() · hsla() · CSS colour names
WCAG 2.1 · AA needs 4.5:1 for body text, 3:1 for text 18pt+ or bold 14pt+.