HEX to RGB
Convert HEX color codes to RGB and HSL values with a live preview.
RGBrgb(232, 89, 12)
HSLhsl(21, 90%, 48%)
Red232
Green89
Blue12
Related Tools
FAQ
- What is HEX color format?
- HEX colors represent RGB values as hexadecimal digits: #RRGGBB, where each pair ranges from 00 to FF (0-255 in decimal). For example, #FF0000 is pure red.
- What is the difference between RGB and HSL?
- RGB defines colors by red, green, blue channel intensities (0-255). HSL defines colors by hue (0-360 degrees), saturation (0-100%), and lightness (0-100%). HSL is often more intuitive for choosing colors.
- Are 3-digit hex codes supported?
- Yes. 3-digit codes like #abc are expanded to 6 digits as #aabbcc before conversion.
The HEX to RGB converter parses hexadecimal color codes and displays the equivalent RGB and HSL values with a live color preview. Supports 3-digit (#abc) and 6-digit (#aabbcc) hex codes, with or without the # prefix. Useful for CSS development and design work.