Color Code Chart

The following two color code charts can be used as a reference when applying colors to an HTML document. In HTML, you can specify color using its RGB value (using either hex or RGB notation), or by its color name. The values in the color code charts below can be used within your HTML code.

Selecting a color from these charts will display a color scheme combination that includes your color as the main background color.

Go ahead... try it!

HTML Color Names

The following color code chart contains the 17 official HTML color names (based on the CSS 2.1 specification) along with their hex RGB value and their decimal RGB value.

X11 Color Names

The colors in the following color code chart represent the official X11 color names. These colors were standardized by SVG 1.0 and most of them are distributed with the X Windows System. These colors should be recognized by most modern browsers.

Using These Color Codes

To use these HTML color codes, your code needs to look like one of the following.

If using the color name: style="color:MistyRose;"

If using the hexadecimal value: style="color:#FFE4E1;"

If using the decimal RGB value: style="color:rgb(255,228,225);"

For more information about HTML color codes, check out the HTML color page. This page provides some examples of HTML color usage, and it explains the various ways you can implement the color names, hexadecimal values and RGB values.