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

What does this converter do? It converts RGB to hex.

This tool takes input as values for Red, Green, and Blue, ranging from 0 to 255, and converts those values to a hexadecimal string that can be used to specify a color in HTML/CSS. Photo editing programs usually represent colors in RGB. To use colors from your photo editing software as the background of an HTML element, you need to put them in all caps and use their hexadecimal code.