HTML color codes

HTML color codes is a defacto general term used to describe the earliest-available methods for specifying colors on web pages. This includes HTML color names such as black, purple, and aqua, and hexadecimal notations such as #000000, #800080, and #00ffff. These were originally defined in HTML specifications — see for example the HTML 3.2 color definitions of the original 16 HTML colors.

It is no longer accurate to refer to colors on the web as "HTML color codes" or "HTML color names". Colors are now specified in the CSS color module, and generally known as CSS colors or web colors.

See also

General knowledge

Web colors on Wikipedia

Technical reference

To look up web colors on MDN, see our CSS <color> values reference documentation, or more specifically: