HTML Color Names

All 140 HTML color names with their hex codes. Search or filter by color family, click a swatch to copy its hex, or open a name to see shades, tints and matching palettes.

140 HTML color names

AliceBlue#F0F8FF
Aqua#00FFFF
Aquamarine#7FFFD4
Azure#F0FFFF
Beige#F5F5DC
Bisque#FFE4C4
Black#000000
Blue#0000FF
BlueViolet#8A2BE2
Brown#A52A2A
Burlywood#DEB887
CadetBlue#5F9EA0
Chartreuse#7FFF00
Chocolate#D2691E
Coral#FF7F50
Cornsilk#FFF8DC
Crimson#DC143C
Cyan#00FFFF
DarkBlue#00008B
DarkCyan#008B8B
DarkGray#A9A9A9
DarkGreen#006400
DarkKhaki#BDB76B
DarkOrange#FF8C00
DarkOrchid#9932CC
DarkRed#8B0000
DarkSalmon#E9967A
DarkViolet#9400D3
DeepPink#FF1493
DimGray#696969
DodgerBlue#1E90FF
Firebrick#B22222
Fuchsia#FF00FF
Gainsboro#DCDCDC
GhostWhite#F8F8FF
Gold#FFD700
Goldenrod#DAA520
Gray#808080
Green#008000
Honeydew#F0FFF0
HotPink#FF69B4
IndianRed#CD5C5C
Indigo#4B0082
Ivory#FFFFF0
Khaki#F0E68C
Lavender#E6E6FA
LawnGreen#7CFC00
LightBlue#ADD8E6
LightCoral#F08080
LightCyan#E0FFFF
LightGray#D3D3D3
LightGreen#90EE90
LightPink#FFB6C1
Lime#00FF00
LimeGreen#32CD32
Linen#FAF0E6
Magenta#FF00FF
Maroon#800000
MediumBlue#0000CD
MintCream#F5FFFA
MistyRose#FFE4E1
Moccasin#FFE4B5
Navy#000080
OldLace#FDF5E6
Olive#808000
OliveDrab#6B8E23
Orange#FFA500
OrangeRed#FF4500
Orchid#DA70D6
PaleGreen#98FB98
PapayaWhip#FFEFD5
PeachPuff#FFDAB9
Peru#CD853F
Pink#FFC0CB
Plum#DDA0DD
PowderBlue#B0E0E6
Purple#800080
Red#FF0000
RosyBrown#BC8F8F
RoyalBlue#4169E1
Salmon#FA8072
SandyBrown#F4A460
SeaGreen#2E8B57
Seashell#FFF5EE
Sienna#A0522D
Silver#C0C0C0
SkyBlue#87CEEB
SlateBlue#6A5ACD
SlateGray#708090
Snow#FFFAFA
SteelBlue#4682B4
Tan#D2B48C
Teal#008080
Thistle#D8BFD8
Tomato#FF6347
Turquoise#40E0D0
Violet#EE82EE
Wheat#F5DEB3
White#FFFFFF
WhiteSmoke#F5F5F5
Yellow#FFFF00

How to use HTML color names in CSS

A color name works anywhere CSS accepts a color value, including color, background-color, border-color and box-shadow. These two rules produce the same result, because blue is the name for the hex code #0000FF:

.button { background-color: blue; }
.button { background-color: #0000ff; }

Names also work inline in HTML and in SVG attributes:

<h1 style="color: antiquewhite;">Hello</h1>
<circle cx="50" cy="50" r="40" fill="tomato" />

Names are handy for quick prototypes and readable code. For brand colors you will usually want an exact hex value, which you can pick with the ColorKit color picker.


HTML color names FAQ

What are HTML color names?

HTML color names are predefined keywords that browsers map to a fixed color value. Writing tomato gives you the same color as #ff6347, so you can apply a color without looking up its hex code.

How many HTML color names are there?

The CSS Color Module Level 4 specification defines 148 named colors. This list shows 140 of them. The other 8 are 7 alternate “grey” spellings (grey, darkgrey, darkslategrey, dimgrey, lightgrey, lightslategrey and slategrey), which match their “gray” versions exactly, plus rebeccapurple (#663399), the newest name. A few names also share a value, such as aqua and cyan. Less common names include thistle, rosybrown and seagreen.

Can I create my own color names?

Not as new keywords. The closest option is a CSS custom property, for example --brand: #ff6600; on :root, which you then use as color: var(--brand);.

Do all web browsers support HTML color names?

Yes, every modern browser supports the full list. If a browser does not recognize a value, it ignores that declaration and keeps whatever color the element would otherwise have.

Are HTML color names case-sensitive?

No. AliceBlue, aliceblue and ALICEBLUE all work. Lowercase is the common convention.

Can I use HTML color names outside of HTML and CSS?

Often, yes. SVG uses the same keywords, and many tools that accept CSS colors understand them too. Design apps usually expect hex or RGB values, so check the tool’s documentation. Hex is the most widely supported format.