HTML – Color Names | HTML – Color Codes

HTML color names are the simplest way to define the color for the HTML elements, as they are predefined names for the colors, such as redgreenblue, etc. HTML allows the use of predefined color names to specify colors in web development. 

While early versions of HTML recognized a limited set of 16 basic color names, modern browsers and CSS3 support a much larger list of 147 color names.

The 16 basic HTML color names are: aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow.

In HTML5, an additional basic color name, “orange,” was added, bringing the total to 17 basic colors.

Color NameColor Code
RedFF0000
DarkRed8B0000
IndianRedCD5C5C
OrangeFFA500
DarkOrangeFF8C00
OrangeRedFF4500
TomatoFF6347
YellowFFFF00
LightYellowFFFFE0
GoldFFD700
KhakiF0E68C
DarkKhakiBDB76B
Maroon800000
BrownA52A2A
RosyBrownBC8F8F
SandyBrownF4A460
PeruCD853F
ChocolateD2691E
TanD2B48C
CoralFF7F50
LightCoralF08080
PinkFFC0CB
LightPinkFFB6C1
HotPinkFF69B4
DeepPinkFF1493
MistyRoseFFE4E1
Indigo4B0082
Purple800080
MediumPurple9370DB
VioletEE82EE
DarkViolet9400D3
MediumVioletRedC71585
BlueViolet8A2BE2
MagentaFF00FF
DarkMagenta8B008B
PlumDDA0DD
OrchidDA70D6
FuchsiaFF00FF
MediumOrchidBA55D3
LavenderE6E6FA
Blue0000FF
DarkBlue00008B
LightBlueADD8E6
MediumBlue0000CD
PowderBlueB0E0E6
SkyBlue87CEEB
LightSkyBlue87CEFA
DeepSkyBlue00BFFF
DodgerBlue1E90FF
RoyalBlue4169E1
SlateBlue6A5ACD
MediumSlateBlue7B68EE
DarkSlateBlue483D8B
Navy000080
Aqua00FFFF
Cyan00FFFF
LightCyanE0FFFF
DarkCyan008B8B
Teal008080
Green008000
DarkGreen006400
LightGreen90EE90
PaleGreen98FB98
GreenYellowADFF2F
YellowGreen9ACD32
LawnGreen7CFC00
Lime00FF00
LimeGreen32CD32
Olive808000
DarkOliveGreen556B2F
ForestGreen228B22
SeaGreen2E8B57
MediumSeaGreen3CB371
DarkSeaGreen8FBC8F
SpringGreen00FF7F
MediumSpringGreen00FA9A
WhiteFFFFFF
FloralWhiteFFFAF0
SnowFFFAFA
BeigeF5F5DC
IvoryFFFFF0
Black000000
Gray808080
LightGrayD3D3D3
DarkGrayA9A9A9
SlateGray708090
LightSlateGray778899
DarkSlateGray2F4F4F
DimGray696969
SilverC0C0C0

Leave a Comment