Quick Answer
How do you convert HEX to RGB?
// Answer
A HEX color like #FF2230 encodes red, green, and blue as three pairs of hex digits. FF = 255 (red), 22 = 34 (green), 30 = 48 (blue), giving rgb(255, 34, 48). HSL describes the same color as hue, saturation, and lightness. This tool converts between all three live.
Why use this tool
One color, every format
Designers and developers juggle HEX for CSS, RGB for canvas and images, and HSL for adjusting shades. Convert instantly with a live preview so you always have the format you need.
FAQ
Frequently asked questions
Type an rgb() value and the HEX field updates automatically, or use the color picker.
HSL (hue, saturation, lightness) makes it easy to create lighter or darker variants of a color by adjusting lightness.
Yes, pick a color visually and all formats update.
Yes, conversion runs entirely in your browser.
Advertisement
More tools