Red color (R):
Green color (G):
Blue color (B):


RGB to hex converter

What does this RGB to Hex converter do?

It accepts input in the format of numbers for Red, Green, and Blue between 0 and 255. It then converts these values into a hexadecimal string which is used to define colors in HTML/CSS code. Photo editing software typically displays the color using RGB and, therefore, when you wish to apply the colors that you have chosen to use in your software for editing photos to create the background for your HTML element, then you'll need the hexadecimal representation for the RGB values. This tool lets you find these values.

RGB to Hex color table

Color Color


(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


It is the RGB color model can be described as an additive one that uses red blue, green, and red light combined in different ways to create a vast range of colors. Its name derives directly from three primary colors of additives that are green, red, and blue. Read more on Wikipedia


A Hex triplet is a 6-digit three-byte hexadecimal number that is used for HTML, CSS, SVG, and many other computing applications to indicate the colors. These bytes symbolize the green, red and blue parts in the color. One byte is a representation of an integer in the range of between 00 and FF (in Hexadecimal notation) which is between 0 and 255 in decimal notation. Read more on Wikipedia


As you start to walk on the way, the way appears.-Rumi

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.