RGB to Hex Converter
Enter red, green and blue color levels (0..255) and press the Convert button:
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 Name | (R,G,B) | Hex Code |
---|---|---|
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 π
Convert the red, green and blue color values from decimal to hex. π’β‘οΈ#οΈβ£
Concatenate the 3 hex values of the red, green and blue together: RRGGBB
. π
Example 1:
Transforming the color red (255,0,0) into hex code format becomes β€οΈ
R = 255ββ = FFββ
G = 0ββ = 00ββ
B = 0ββ = 00ββ
Hex = #FF0000 π₯
Example 2:
Convert gold color (255,215,0) to hex color code: β
R = 255ββ = FFββ
G = 215ββ = D7ββ
B = 0ββ = 00ββ
Hex = #FFD700 β¨
Let the colors do the talking!