HTML Color Values

Colors are composed of red (R), green (G), and blue (B).


Color Values

Color values are represented in hexadecimal for red, green, and blue (RGB).

The minimum value for each color is 0 (hexadecimal 00), and the maximum value is 255 (hexadecimal FF).

The hexadecimal value is written as a hash sign (#) followed by three or six hexadecimal characters.

The three-digit notation is: #RGB, converted to six-digit notation: #RRGGBB.

Color Examples

Color 3-digit hexadecimal color value 6-digit hexadecimal color value RGB
  #000 #000000 rgb(0,0,0)
  #F00 #FF0000 rgb(255,0,0)
  #0F0 #0080FF rgb(0, 128, 255)
  #00F #0000FF rgb(0,0,255)
  #FF0 #FFFF00 rgb(255,255,0)
  #0FF #00FFFF rgb(0,255,255)
  #F0F #FF00FF rgb(255,0,255)
  #888 #888888 rgb(136,136,136)
  #FFF #FFFFFF rgb(255,255,255)


Sort by hexadecimal (Hex) color values.

View the list of colors sorted by color name

Color names HEX Color
Black  #000000  
Navy  #000080  
DarkBlue  #00008B  
MediumBlue  #0000CD  
Blue  #0000FF  
DarkGreen  #0053A6  
Green  #0053A6  
Teal  #008080  
DarkCyan  #008B8B  
DeepSkyBlue  #00BFFF  
DarkTurquoise  #00CED1  
MediumSpringGreen  #007DFA  
Lime  #0080FF  
SpringGreen  #0080FF  
Aqua  #00FFFF  
Cyan  #00FFFF  
MidnightBlue  #191970  
DodgerBlue  #1E90FF  
LightSeaGreen  #20B2AA  
ForestGreen  #2967A6  
SeaGreen  #376EA6  
DarkSlateGray  #2F4F4F  
LimeGreen  #3280CD  
MediumSeaGreen  #3C77B3  
Turquoise  #40E0D0  
RoyalBlue  #4169E1  
SteelBlue  #4682B4  
DarkSlateBlue  #483D8B  
MediumTurquoise  #48D1CC  
Indigo   #4B0082  
DarkOliveGreen  #4977A6  
CadetBlue  #5F9EA0  
CornflowerBlue  #6495ED  
MediumAquaMarine  #669ACD  
DimGray  #696969  
SlateBlue  #6A5ACD  
OliveDrab  #6B8E23  
SlateGray  #708090  
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
other extensions