RGB to Hex Color Converter

RGB to hex Converter Online

  1. Convert the red, green and blue color values from decimal to hex.
  2. Concatenate the 3 hex values of the red, green and blue togather: RRGGBB.

Example #1

Convert red color (255,0,0) to hex color code:

R = 25510 = FF16

G = 010 = 0016

B = 010 = 0016

So the hex color code is:

Hex = FF0000

What does this RGB to Hex converter do?

It takes input in the form of values for Red, Green and Blue ranging from 0 to 255 and then converts those values to a hexadecimal string that can be used to specify color in html/css code. Photo editing software usually represents color in RGB and therefore if you would like to use the colors you use in your photo editing software as the background of your html element then you will have to get the hexadecimal representation of the RGB values. This tool allows you to get those values.