A few colors can be referred to using names rather than hex values, but hex values are always preferable.
Below is a listing of the sixteen original Windows colors and their names.
Put your cursor over each color to see it's Hex code.
These are often mentioned as the best choice for colors to use when creating icons or buttons. The fewer colors used, the smaller the file. This can mean less system resources used for redrawing each icon used on a desktop, or to make them more compatible across platforms.
|Example of code: background color coded in place using a name.