Free tool · nothing is uploaded
Free hex to RGB converter
Type a hex color or red, green, and blue. This page converts both ways and shows the color. The values stay in your browser.
How the conversion works
- A 6-digit hex color is
#RRGGBB. Each pair is base 16.00is 0 andFFis 255. #1C5CF4splits into1C,5C, andF4. Those are 28, 92, and 244.- A 3-digit color
#RGBrepeats each digit.#1C5is#11CC55. - The other direction writes each channel as two hex digits and adds
#. Letters are lowercase. - Red, green, and blue must each be a whole number from 0 to 255. Anything else is refused.
The square is that same color in this browser. The page does not check contrast, and it does not choose a palette.
Questions about this converter
How do you convert hex to RGB?
A 6-digit hex color is three pairs. Each pair is a base-16 number from 00 to FF, which is 0 to 255. #1C5CF4 is red 28, green 92, and blue 244.
What is a 3-digit hex color?
#RGB is shorthand for #RRGGBB. Each digit is repeated, so #1C5 is #11CC55. This page expands it and shows the 6-digit form.
What do the RGB numbers mean?
Red, green, and blue, each from 0 to 255. 0 is none of that channel. 255 is the full channel. This page does not judge contrast or pick a palette.
Does this tool upload the color?
No. The hex code and the RGB numbers stay in the browser. Blogoose does not receive them.