Remove Ads

RGB to Hex Converter

Enter red, green and blue color levels (0..255) and press the Convert button:

Remove Ads

Set color levels (0-255) for red, green, and blue, and Use it:

Remove Ads

Share on Social Media:

Converter

R Red

G Green

B Blue


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.

Try our new color exploring tool.

Convert a Hex value to RGB

Perhaps you have seen a hex code on a web page and would like to use that color in your photo editing software. In that case you will need the RGB values if your photo editing software does not support hex values.

Click here to use the Hex to RGB converter page.

RGB to Hex color table

Color

Color

name

(R,G,B)Hex
 Black(0,0,0)#000000
 White(255,255,255)#FFFFFF
 Red(255,0,0)#FF0000
 Lime(0,255,0)#00FF00
 Blue(0,0,255)#0000FF
 Yellow(255,255,0)#FFFF00
 Cyan(0,255,255)#00FFFF
 Magenta(255,0,255)#FF00FF
 Silver(192,192,192)#C0C0C0
 Gray(128,128,128)#808080
 Maroon(128,0,0)#800000
 Olive(128,128,0)#808000
 Green(0,128,0)#008000
 Purple(128,0,128)#800080
 Teal(0,128,128)#008080
 Navy(0,0,128)#000080

RGB to hex conversion

  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

Example #2

Convert gold color (255,215,0) to hex color code:

R = 25510 = FF16

G = 21510 = D716

B = 010 = 0016

So the hex color code is:

Hex = FFD700

ads

Please disable your ad blocker!

We understand that ads can be annoying, but please bear with us. We rely on advertisements to keep our website online. Could you please consider whitelisting our website? Thank you!