RGB to Hex

Search Engine Optimization

RGB to Hex

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

Red color (R):
Green color (G):
Blue color (B):
Color preview:
Hex color code:
RGB color code:
HSL color code:

About RGB to Hex

Small SEO Tools offers the best free This interactive online color conversion tool allows you to calculate the transition between RGB to HEX values. Input one among the codes to convert it to the opposite one instantly. A successful conversion changes the background color of the page and generates CSS code snippets for quick use.

HEX Input – the primary field accepts values with or without the hash sign. It works for both 3 character long codes. The calculator can handle some typos too, for example when the second digit of a component is an invalid character, not in the hexadecimal range (0-F).

RGB Input – it works both for upper and lowercase rgb or rgba codes, but you'll ignore the starting rgb mark and therefore the brackets. Make sure you add three numbers in the 0-255 range separated by commas.

RGB to Hex color table:



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