HEX to RGB Converter
Convert HEX colors to RGB
Results
Frequently Asked Questions
What color formats does the converter support?
The converter handles HEX, RGB, RGBA, HSL, HSLA, HSV, CMYK, and named CSS colors. Enter any format and instantly see the equivalent values in all other formats. It also shows a visual color preview.
How do I convert a HEX color to RGB?
Enter the HEX code (e.g., #3498db) and the converter shows RGB(52, 152, 219). Each pair of hex digits maps to a 0-255 decimal value. The converter also shows HSL, CMYK, and other formats simultaneously.
Can I convert colors with transparency?
Yes. Enter RGBA (rgba(52,152,219,0.5)) or HSLA values. The converter shows the 8-digit HEX equivalent (#3498db80) and all other formats with alpha channel. Transparency is displayed as a percentage.
What is the best color format for CSS?
HEX is most common and compact. HSL is best for programmatic manipulation (easy to adjust lightness/saturation). RGBA is needed for transparency. Modern CSS also supports oklch() and lab() for perceptually uniform colors.
How do I find the CSS name of a color?
Enter any color value and the converter shows the nearest named CSS color if one exists. CSS defines 148 named colors from "aliceblue" to "yellowgreen". The converter shows the exact match or the closest named color with the distance.