| Home > Internet > HTML > Graphics > Color names |
This is a list of 138 colors recognized by name by Navigator 2+ and MSIE 3+. You can use these color names in CSS code instead of RGB triplets. They don't have to be capitalized. If the word hexadecimal gives you an anxiety attack, this could make HTML coding easier for you. (See my 256 colors page for a listing of the 216 colors that are supposed to appear undithered on 8-bit displays.)
For the hex RGB codes for these colors, view the document source and note the background values.
| ALICEBLUE | ANTIQUEWHITE* | AQUA¹ |
|---|---|---|
| AQUAMARINE* | AZURE* | BEIGE |
| BISQUE* | BLACK4 | BLANCHEDALMOND |
| BLUE* | BLUEVIOLET | BROWN* |
| BURLYWOOD* | CADETBLUE* | CHARTREUSE* |
| CHOCOLATE* | CORAL* | CORNFLOWERBLUE |
| CORNSILK* | CRIMSON | CYAN* |
| DARKBLUE | DARKCYAN | DARKGOLDENROD* |
| DARKGRAY4 | DARKGREEN | DARKKHAKI |
| DARKMAGENTA | DARKOLIVEGREEN* | DARKORANGE* |
| DARKORCHID* | DARKRED | DARKSALMON |
| DARKSEAGREEN* | DARKSLATEBLUE | DARKSLATEGRAY* |
| DARKTURQUOISE | DARKVIOLET | DEEPPINK* |
| DEEPSKYBLUE* | DIMGRAY4 | DODGERBLUE* |
| FIREBRICK* | FLORALWHITE | FORESTGREEN |
| FUCHSIA | GAINSBORO4 | GHOSTWHITE |
| GOLD* | GOLDENROD* | GRAY2 4 |
| GREEN* | GREENYELLOW | HONEYDEW* |
| HOTPINK* | INDIANRED* | INDIGO |
| IVORY* | KHAKI* | LAVENDER |
| LAVENDERBLUSH* | LEMONCHIFFON* | LIGHTBLUE* |
| LIGHTCORAL | LIGHTCYAN* | LIGHTGOLDENRODYELLOW |
| LIGHTGRAY4 | LIGHTGREEN | LIGHTPINK* |
| LIGHTSALMON* | LIGHTSEAGREEN | LIGHTSKYBLUE* |
| LIGHTSLATEGRAY | LIGHTSTEELBLUE* | LIGHTYELLOW* |
| LIME³ | LIMEGREEN | LINEN |
| MAGENTA* | MAROON* | MEDIUMAQUAMARINE |
| MEDIUMBLUE | MEDIUMORCHID* | MEDIUMPURPLE* |
| MEDIUMSEAGREEN | MEDIUMSLATEBLUE | MEDIUMSPRINGGREEN |
| MEDIUMTURQUOISE | MEDIUMVIOLETRED | MIDNIGHTBLUE |
| MINTCREAM | MISTYROSE* | NAVAJOWHITE* |
| NAVY | OLDLACE | OLIVE |
| OLIVEDRAB* | ORANGE* | ORANGERED* |
| ORCHID* | PALEGOLDENROD | PALEGREEN* |
| PALETURQUOISE* | PALEVIOLETRED* | PAPAYAWHIP |
| PEACHPUFF* | PERU | PINK* |
| PLUM* | POWDERBLUE | PURPLE* |
| RED* | ROSYBROWN* | ROYALBLUE* |
| SADDLEBROWN | SALMON* | SANDYBROWN |
| SEAGREEN* | SEASHELL* | SIENNA* |
| SILVER4 | SKYBLUE* | SLATEBLUE* |
| SLATEGRAY* | SNOW* | SPRINGGREEN* |
| STEELBLUE* | TAN* | TEAL |
| THISTLE* | TOMATO* | TURQUOISE* |
| VIOLET | WHEAT* | WHITE4 |
| WHITESMOKE4 | YELLOW* | YELLOWGREEN |
NOTES
1. AQUA is the same color as CYAN, hex code #00FFFF.
2. There are also 100 available numbered gray variants: GRAY1 (darkest) through GRAY100 (lightest); "GRAY" shown here is very close to GRAY75. Also, the word gray may be spelled "grey" in any color name.
3. LIME, hex #00FF00, is the display primary usually identified in display terminology as "green." In this naming scheme the name GREEN is assigned to the darker color hex #008000.
4. These named colors are neutral grays, with equal RGB components.
In 256-colors modes, sometimes called "8-bit," in background colors some systems will display the closest match of the 216 "magic" colors. So if you're using an 8-bit display mode, some of these samples may appear to be the same color. You can probably change the background color of these pages by changing the default window color in your OS's display color scheme. You may have to re-start your browser to see the change.
Here are some color name code examples.
| Tags | Effect |
|---|---|
| <BODY BGCOLOR="black" TEXT="yellow"> </BODY> |
For entire page, set background color to black, and default text color to yellow. (Must be a Star Trek page.) |
| <TABLE BGCOLOR="aqua"> </TABLE> |
Set background color for whole table to aqua; overrides page color. |
| <TR BGCOLOR="aqua"> </TR> |
Set background color for single row of table to aqua; overrides table color. |
| <TH BGCOLOR="aqua"> </TH> <TD BGCOLOR="aqua"> </TD> |
Set background color for single cell of table to aqua; overrides any table and row colors. |
| <P STYLE="color: red; background: transparent; "> </P> <SPAN STYLE="color: red; background: transparent; "> </SPAN> |
Set spot text color to red; overrides text color for page.* |