HEX to RGB Converter
Turn a hex colour like #7C3AED into the red, green and blue values behind it
About HEX and RGB
HEX and RGB are both ways to represent colors, but they use different systems.
HEX uses six hexadecimal digits (0-9 and A-F) to represent the intensity of red, green, and blue in a color. #FF0000 represents full red (FF), no green (00), and no blue (00).
RGB uses three decimal numbers (0-255) to represent the intensity of red, green, and blue. 255 is the highest intensity, while 0 is the lowest. So (255, 0, 0) means full red, no green, and no blue.
HEX:
-
Uses six hexadecimal digits (0-9 and A-F).
-
Each pair of digits represents the intensity of red, green, and blue (e.g., #FF0000 is full red, no green, no blue).
-
Compact representation, often used in web development.
RGB:
-
Uses three decimal numbers (0-255).
-
Each number represents the intensity of red, green, and blue (e.g., (255, 0, 0) is full red, no green, no blue).
-
More intuitive for some users, as it uses a familiar decimal system.