RGB to Hex Converter

RGB to Hex Color Converter. Enter red, green and blue color levels and press the Convert button.

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

Share on Social Media:

RGB to Hex and HLS converter?

RGB to HEX Converter is an online free tool for converting RGB color code to HEX format and HLS. RGB and HEX are the most common color code formats other than HSL but we are providing that also and predefined color codes.

RGB Contains Red, Blue, Green, and Alpha (opacity). Red, green, and blue are numbers between 0 to 256 while alpha is between 0 to 1. These values express the amount of any R, G, and B color in the mixture. For example, if the color code is RGB (255,0,0), this is pure red as there is no green and blue in the mixture while red is the maximum. A HEX color code operates similarly, but it utilizes a base 16 or hexadecimal number system for each color. There are six digits, with each pair representing red, green, and blue respectively.

RGB to hex conversion

1. Convert the red, green, and blue color values from decimal to hex and HLS. 
2. Concatenate the 3 hex values of the red, green, and blue together: 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

RGB to Hex color table

Color

Color

name

Hex

(R,G,B)

 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 HSL color table

Color

Color

name

Hex

(R,G,B)

(H,S,L)

 Black#000000(0,0,0)(0°,0%,0%)
 White#FFFFFF(255,255,255)(0°,0%,100%)
 Red#FF0000(255,0,0)(0°,100%,50%)
 Lime#00FF00(0,255,0)(120°,100%,50%)
 Blue#0000FF(0,0,255)(240°,100%,50%)
 Yellow#FFFF00(255,255,0)(60°,100%,50%)
 Cyan#00FFFF(0,255,255)(180°,100%,50%)
 Magenta#FF00FF(255,0,255)(300°,100%,50%)
 Silver#BFBFBF(191,191,191)(0°,0%,75%)
 Gray#808080(128,128,128)(0°,0%,50%)
 Maroon#800000(128,0,0)(0°,100%,25%)
 Olive#808000(128,128,0)(60°,100%,25%)
 Green#008000(0,128,0)(120°,100%,25%)
 Purple#800080(128,0,128)(300°,100%,25%)
 Teal#008080(0,128,128)(180°,100%,25%)
 Navy#000080(0,0,128)(240°,100%,25%)


 FAQS

1. How to use Online RGB to HEX Converter?
You can convert a RGB color to HEX by following these steps.
First, drag using bar the RGB code you want to convert to HEX. If the RGB color code you entered is valid, HEX color code will be shown as output, otherwise you will see an error. 

360 Converters Effortlessly transform your RGB values into HEX codes with our intuitive converter. Simplify your design process by converting colors seamlessly and ensuring precise color matching across all digital platforms. Experience the ease and accuracy of converting RGB to HEX today!