How to Convert HEX to RGB
ToolPrime Team 2 min read
HEX and RGB are the two most common color formats in web development. HEX codes like #3B82F6 are compact but harder to manipulate programmatically. RGB values like rgb(59, 130, 246) are more intuitive for calculations and animations.
1 Open the Color Picker
Navigate to the Color Picker tool.
2 Enter the HEX value
Type your HEX color code (e.g., #3B82F6) into the HEX input field.
3 Read the RGB values
The RGB values are displayed automatically. Copy them in the format you need.
How It Works
HEX to RGB conversion splits the 6-character hex string into 3 pairs (RR, GG, BB) and converts each pair from hexadecimal (base 16) to decimal (base 10). For example, #3B82F6: 3B = 59, 82 = 130, F6 = 246, giving rgb(59, 130, 246).
Try it yourself
Open Color Picker & Converter