RGB to hexadecimal

Do you need convert a color from RGB to hexadecimal or from hexadecimal to RGB? Use our converters to make the conversion.

Photo editors usually express colors in RGB but if you want to work with HTML, CSS or any other photo or video editing program, you might need the corresponding RGB to HEX converter or vice versa.

RGB to Hexadecimal Converter

Do you need to spend a RGB color to hexadecimal format? Don't worry, with our RGB to hexadecimal converter you can do it automatically.

You simply enter the values corresponding to each value (red, green and blue), making sure that its value is between 0 and 255 otherwise, the value obtained will not be correct. Once you have entered them, click on the button to convert to hexadecimal format and you will obtain the corresponding equivalence.

Hexadecimal to RGB Converter

Calculate the equivalence of any color in hexadecimal to RGB format thanks to our online color converter. With this tool you will not only be able to change from hexadecimal to RGB color format but you will also be able to preview the shade you have entered.

How to convert from RGB to Hexadecimal

RGB to Hexadecimal Converter

If you need to learn how to pass a RGB color in Hexadecimal, simply follow these steps:

  1. Convert the value decimal to hexadecimal of R, G and B. Each of them will have a number between 0 and 255. The conversion can be done directly from the link we have just provided.
  2. Put the 3 hexadecimal values together, like this: RRGGBB

For example, if we want to convert the color red (255, 0, 0) from RGB to hexadecimalwe are left with:

R = 25510 = FF16

G = 010 = 0016

B = 010 = 0016

We add all the values together and we are left with the hexadecimal color red is FF0000.

Convert hexadecimal to RGB color

Hexadecimal to RGB Converter

In the same way, we can convert a color in RGB format to hexadecimal format doing the same process as in the previous point but in reverse, that is:

  1. Convert the first two digits to decimal to obtain the value of the red color (R).
  2. Change the two middle digits to decimal to get the value of the green color (G).
  3. Convert the last two digits from hexadecimal to decimal to get the blue color level (B).

To make the conversion of hexadecimal to decimal you can use the converter that you will find in the link that we have just left.

For example, if you want to convert color 00FF00 to RGB we will have the following steps to follow:

R = 0016 = 010

G = FF16 = 25510

B = 0016 = 010

Finally, we group and we are left with the color 00FF00 in hexadecimal equivalent to (0, 255, 0) in RGB.

RGB and Hexadecimal Color Chart

Below you have a table of equivalence with the main RGB colors also expressed in hexadecimal format.

Color Color


Hex (R,G,B)
Black #000000 (0,0,0)
White #FFFFFFFF (255,255,255)
Red #FF0000 (255,0,0)
Lima #00FF00 (0,255,0)
Blue #0000FF (0,0,255)
Yellow #FFFF00 (255,255,0)
Cyan #00FFFF (0,255,255)
Magenta #FF00FF (255,0,255)
Silver #C0C0C0 (192,192,192)
Gray #808080 (128,128,128)
Garnet #800000 (128,0,0)
Oliva #808000 (128,128,0)
Green #008000 (0,128,0)
Purple #800080 (128,0,128)
Turquoise #008080 (0,128,128)
Navy blue #000080 (0,0,128)

Leave a Comment

Information on data protection

  • Responsible: Ignacio Cuesta
  • Purpose of processing: Spam control, comment management, etc.
  • Legitimation: Your consent
  • Communication of data: Data will not be communicated to third parties except by legal obligation.
  • Rights: Access, rectification, portability, forgetfulness.
  • Contact us: contacto@calculadoraconversor.com.
  • Additional information: More information at our privacy policy.