Save now
off all Envato Elements plans this Cyber Sale.
Get in quick!

Hex to RGB

rgb(99, 91, 255)
Create palette

What is hex?

HEX is a hexadecimal notation system for representing RGB colors in web design and digital applications. It consists of a “#” symbol followed by six characters, where each pair of characters represents the intensity of a color channel (red, green, and blue respectively), using values from 00 (minimum intensity/absence of color) to FF (maximum intensity/full presence of color). Example hex: #635BFF.

What is rgb?

RGB (red, green, blue) is an additive color model used in digital displays, where colors are created by combining different intensities of red, green, and blue light. Each color channel ranges from 0 (no light/color) to 255 (maximum light/color), allowing for over 16 million possible colors. Example: RGB(99, 91, 255).

Hex to RGB color table

Color Color name Hex RGB
Black #000000 (0, 0, 0)
White #FFFFFF (255, 255, 255)
Pink #FFC0CB (255, 192, 203)
Red #FF0000 (255, 0, 0)
Orange #FFA500 (255, 165, 0)
Gold #FFD700 (255, 215, 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)
Brown #A52A2A (165, 42, 42)
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)

How to convert Hex to RGB?

To convert a hex color code to RGB, you’ll break it down and convert each part from hexadecimal (base-16) to decimal (base-10):

  1. Separate the Hex code: Split a hex code (example: #F2A50C) into three 2-digit pairs. The first pair is Red, the second Green, and the third Blue. For example, in #FF8D00, Red is FF, Green is 8D, and Blue is 00.
    Hex = #FF8D00
  2. Convert hexadecimal to decimal: Multiply the first digit of each pair (remember A=10, B=11, C=12, D=13, E=14, F=15) by 16 and add the second digit to convert from hexadecimal to decimal.
    R = FF16 = 16×15 + 15 = 25510
    G = 8D16 = 16×8 + 13 = 14110
    B = 0016 = 16×0 + 0 = 010
  3. Combine to form the RGB value: Place the three decimal values in the order (Red, Green, Blue).
    RGB = (255,141,0)