Free Hex to RGB Color Converter

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.

Hex color 1C5CF4 converted to red 28, green 92, and blue 244.
The picture is one example. The form below converts any color you type.

rgb(28, 92, 244)

The color stays in this browser.

How the conversion works

  1. A 6-digit hex color is #RRGGBB. Each pair is base 16. 00 is 0 and FF is 255.
  2. #1C5CF4 splits into 1C, 5C, and F4. Those are 28, 92, and 244.
  3. A 3-digit color #RGB repeats each digit. #1C5 is #11CC55.
  4. The other direction writes each channel as two hex digits and adds #. Letters are lowercase.
  5. 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.