Hex To RGB Color Converter

Hex to RGB Color Converter

Enter 6 digits hex color code and press the Convert button:

Hex color code (#RRGGBB) = Convert × Reset Swap Red (0-255) Green (0-255) Blue (0-255) Red (0-1) Green (0-1) Blue (0-1) CSS color (0-255) CSS color (0%-100%) Color preview

RGB to hex converter ►

Hex to RGB color table

Color Color

name

Hex (R,G,B)
Black #000000 (0,0,0)
White #FFFFFF (255,255,255)
Red #FF0000 (255,0,0)
Lime #00FF00 (0,255,0)
Blue #0000FF (0,0,255)
Yellow #FFFF00 (255,255,0)
Cyan #00FFFF (0,255,255)
Magenta #FF00FF (255,0,255)
Silver #C0C0C0 (192,192,192)
Gray #808080 (128,128,128)
Maroon #800000 (128,0,0)
Olive #808000 (128,128,0)
Green #008000 (0,128,0)
Purple #800080 (128,0,128)
Teal #008080 (0,128,128)
Navy #000080 (0,0,128)

Hex to RGB conversion

  1. Get the 2 left digits of the hex color code and convert to decimal value to get the red color level.
  2. Get the 2 middle digits of the hex color code and convert to decimal value to get the green color level.
  3. Get the 2 right digits of the hex color code and convert to decimal value to get the blue color level.

Example #1

Convert red hex color code FF0000 to RGB color:

Hex = FF0000

So the RGB colors are:

R = FF16 = 25510

G = 0016 = 010

B = 0016 = 010

Or

RGB = (255, 0, 0)

Example #2

Convert gold hex color code FFD700 to RGB color:

Hex = FFD700

So the RGB colors are:

R = FF16 = 25510

G = D716 = 21510

B = 0016 = 010

Or

RGB = (255, 215, 0)

RGB to hex conversion ►

See also

  • How to convert hex to RGB
  • RGB to hex converter
  • Hex to decimal converter
  • RGB color codes
  • #000000 hex to rgb
  • #808080 hex to rgb
  • #FFFFFF hex to rgb
  • #FF0000 hex to rgb
  • #00FF00 hex to rgb
  • #0000FF hex to rgb

Từ khóa » Html To Rgb Color Converter