Convert HEX to RGB Color Online

HEX and RGB are the two most common color formats used in web development and design. HEX uses a compact hexadecimal notation like #FF8800, while RGB specifies each red, green, and blue channel as a decimal value from 0 to 255. Designers often work in HEX because it is compact and easy to copy from design tools, but certain CSS properties, JavaScript calculations, or image processing libraries require RGB values. This tool converts any HEX color code to RGB instantly, supporting both 3-digit shorthand like #F80 and 6-digit full codes like #FF8800. A live color preview lets you visually confirm the conversion is correct. The result is formatted as rgb(255, 136, 0) ready to paste into your CSS. Understanding the relationship between these two formats helps when performing color arithmetic, blending colors, or adjusting transparency by converting to rgba.

RGBrgb(232, 89, 12)
HSLhsl(21, 90%, 48%)
Red232
Green89
Blue12

FAQ

How do I convert a HEX color to RGB?
Split the 6-digit hex code into 3 pairs (RR, GG, BB) and convert each pair from hexadecimal to decimal. For example, #FF8800 becomes rgb(255, 136, 0).
What about 3-digit hex codes?
A 3-digit code like #F80 is expanded by doubling each digit: #FF8800. Then convert each pair to decimal as normal.
Which color format should I use in CSS?
Both HEX and RGB work in all modern browsers. HEX is more compact; RGB is more readable. Use HSL when you need to adjust lightness or saturation programmatically.

Related Conversions