HEX to RGB Converter
Convert HEX color codes to RGB, HSL, HSV, CMYK and vice versa
How HEX to RGB Conversion Works
HEX and RGB are two ways to represent the same color. HEX uses base-16 (hexadecimal) notation while RGB uses decimal values for red, green, and blue channels.
Conversion Method
- HEX → RGB: Split the hex string into 3 pairs (RR, GG, BB) and convert each from base-16 to base-10.
- RGB → HEX: Convert each RGB value (0-255) to a 2-digit hexadecimal number and concatenate.
Examples
#FF0000 = rgb(255, 0, 0) = Red
#00FF00 = rgb(0, 255, 0) = Green
#0000FF = rgb(0, 0, 255) = Blue
Frequently Asked Questions
What is HEX color?
HEX is a 6-digit hexadecimal code representing red, green, blue values. Each pair (00-FF) is a channel. #FF0000 is pure red.
What is the difference between HEX and RGB?
They represent the same colors differently. HEX uses base-16 (#RRGGBB), RGB uses decimal (0-255). #FF0000 = rgb(255,0,0).
Can I convert RGB to HEX?
Yes, enter RGB values on the right panel and get HEX plus all other formats instantly.