HTML color codes and names

HTML color codes are hexadecimal triplets representing the colors red, green, and blue (#RRGGBB). For example, in the color red, the color code is #FF0000, which is '255' red, '0' green, and '0' blue. These color codes can change the color of the background, text, and tables on a web page.

Major hexadecimal color codes

Below are some of the common color names and codes. With these colors, you can also use the color name. For example, in HTML tags and CSS that use color codes, you could use "red" instead of "#FF0000".

Color Name Color Code Color Name Color Code Red #FF0000 White #FFFFFF Cyan #00FFFF Silver #C0C0C0 Blue #0000FF Gray or Grey #808080 DarkBlue #0000A0 Black #000000 LightBlue #ADD8E6 Orange #FFA500 Purple #800080 Brown #A52A2A Yellow #FFFF00 Maroon #800000 Lime #00FF00 Green #008000 Magenta #FF00FF Olive #808000

Color code chart

Tip Use our HTML color picker if you need to choose from an almost infinite variety of colors.

Blacks - Grays - Blues - Greens - Yellows - Browns - Orange - Reds - Pinks - Purples