Free HEX to RGB Converter Online | Microapp
Convert HEX color codes to RGB, HSL, and HSV values instantly. Supports full 6-digit and shorthand 3-digit hex codes. Free online color converter.
Easily transform hexadecimal color codes into their corresponding RGB (Red, Green, Blue) values with our efficient online converter. Perfect for web developers, graphic designers, and anyone needing quick and accurate color format conversions.
How to convert HEX to RGB
A HEX color code is a 6-digit hexadecimal number prefixed with #. Each pair of digits represents the red, green, and blue channel intensity from 0 (00) to 255 (FF). To convert, split the code into three pairs and parse each as a base-16 integer: #RRGGBB → R=parseInt(RR,16), G=parseInt(GG,16), B=parseInt(BB,16).
Worked example: #1B6B45 → R = parseInt("1B",16) = 27, G = parseInt("6B",16) = 107, B = parseInt("45",16) = 69 → rgb(27, 107, 69).
| Color Name | HEX | RGB |
|---|---|---|
| Red | #FF0000 | rgb(255,0,0) |
| Green | #00FF00 | rgb(0,255,0) |
| Blue | #0000FF | rgb(0,0,255) |
| White | #FFFFFF | rgb(255,255,255) |
| Black | #000000 | rgb(0,0,0) |
Advertisement
Related tools
More Colors & Design tools
Frequently Asked Questions
Was this tool helpful?
