HEX to RGB
Convert HEX color codes to RGB values instantly. For web design and development.
About this tool
HEX and RGB are the two most common color formats in web design and development. HEX codes (like #FF5733) are compact and widely used in HTML and CSS. RGB values (like rgb(255, 87, 51)) make it easier to understand how much red, green, and blue are in a color, and are required by many design tools, APIs, and programming libraries. This converter handles both 3-digit (#FFF) and 6-digit (#FFFFFF) HEX codes.
- ✅ Free to use, no sign-up required
- ✅ Files never leave your device
- ✅ Instant conversion
- ✅ Works on any browser and device
How it works
A HEX color code encodes three color channels — red, green, and blue — as pairs of hexadecimal digits. Each pair is converted from base-16 to a decimal number between 0 and 255. For example, #FF5733 decodes as: R=FF (255), G=57 (87), B=33 (51). 3-digit HEX codes like #F53 are expanded to 6-digit equivalents (#FF5533) before conversion.