Color Names List: All 148 CSS Colors With HEX Codes
A complete list of color names: all 148 CSS named colors with HEX codes, grouped by family, plus where the names come from and how they map to hex values.
Updated
CSS defines 148 color names that every browser understands, from aliceblue to yellowgreen. Each name is a fixed alias for one HEX code, so tomato always means #FF6347 and navy always means #000080. The full list is below, grouped by color family, followed by where the names come from and how to use them.
Reds and pinks
Reds: indianred #CD5C5C, lightcoral #F08080, salmon #FA8072, darksalmon #E9967A, lightsalmon #FFA07A, crimson #DC143C, red #FF0000, firebrick #B22222, darkred #8B0000.
Pinks: pink #FFC0CB, lightpink #FFB6C1, hotpink #FF69B4, deeppink #FF1493, mediumvioletred #C71585, palevioletred #DB7093.
Oranges and yellows
Oranges: coral #FF7F50, tomato #FF6347, orangered #FF4500, darkorange #FF8C00, orange #FFA500.
Yellows: gold #FFD700, yellow #FFFF00, lightyellow #FFFFE0, lemonchiffon #FFFACD, lightgoldenrodyellow #FAFAD2, papayawhip #FFEFD5, moccasin #FFE4B5, peachpuff #FFDAB9, palegoldenrod #EEE8AA, khaki #F0E68C, darkkhaki #BDB76B.
Greens
greenyellow #ADFF2F, chartreuse #7FFF00, lawngreen #7CFC00, lime #00FF00, limegreen #32CD32, palegreen #98FB98, lightgreen #90EE90, mediumspringgreen #00FA9A, springgreen #00FF7F, mediumseagreen #3CB371, seagreen #2E8B57, forestgreen #228B22, green #008000, darkgreen #006400, yellowgreen #9ACD32, olivedrab #6B8E23, olive #808000, darkolivegreen #556B2F, mediumaquamarine #66CDAA, darkseagreen #8FBC8F, lightseagreen #20B2AA, darkcyan #008B8B, teal #008080.
Blues and cyans
aqua #00FFFF, cyan #00FFFF, lightcyan #E0FFFF, paleturquoise #AFEEEE, aquamarine #7FFFD4, turquoise #40E0D0, mediumturquoise #48D1CC, darkturquoise #00CED1, cadetblue #5F9EA0, steelblue #4682B4, lightsteelblue #B0C4DE, powderblue #B0E0E6, lightblue #ADD8E6, skyblue #87CEEB, lightskyblue #87CEFA, deepskyblue #00BFFF, dodgerblue #1E90FF, cornflowerblue #6495ED, royalblue #4169E1, blue #0000FF, mediumblue #0000CD, darkblue #00008B, navy #000080, midnightblue #191970.
Purples
lavender #E6E6FA, thistle #D8BFD8, plum #DDA0DD, violet #EE82EE, orchid #DA70D6, fuchsia #FF00FF, magenta #FF00FF, mediumorchid #BA55D3, mediumpurple #9370DB, rebeccapurple #663399, blueviolet #8A2BE2, darkviolet #9400D3, darkorchid #9932CC, darkmagenta #8B008B, purple #800080, indigo #4B0082, slateblue #6A5ACD, darkslateblue #483D8B, mediumslateblue #7B68EE.
Browns
cornsilk #FFF8DC, blanchedalmond #FFEBCD, bisque #FFE4C4, navajowhite #FFDEAD, wheat #F5DEB3, burlywood #DEB887, tan #D2B48C, rosybrown #BC8F8F, sandybrown #F4A460, goldenrod #DAA520, darkgoldenrod #B8860B, peru #CD853F, chocolate #D2691E, saddlebrown #8B4513, sienna #A0522D, brown #A52A2A, maroon #800000.
Whites
white #FFFFFF, snow #FFFAFA, honeydew #F0FFF0, mintcream #F5FFFA, azure #F0FFFF, aliceblue #F0F8FF, ghostwhite #F8F8FF, whitesmoke #F5F5F5, seashell #FFF5EE, beige #F5F5DC, oldlace #FDF5E6, floralwhite #FFFAF0, ivory #FFFFF0, antiquewhite #FAEBD7, linen #FAF0E6, lavenderblush #FFF0F5, mistyrose #FFE4E1.
Grays and black
gainsboro #DCDCDC, lightgray #D3D3D3, silver #C0C0C0, darkgray #A9A9A9, gray #808080, dimgray #696969, lightslategray #778899, slategray #708090, darkslategray #2F4F4F, black #000000.
Each of the seven names containing "gray" can also be spelled with "grey" and gives the same color: lightgrey, darkgrey, grey, dimgrey, lightslategrey, slategrey and darkslategrey. Those seven alternates complete the 148.
The family groupings are a convenience, not part of the standard. Borderline colors such as teal, maroon and mediumslateblue could reasonably sit in a neighboring group.
Where the names come from
The list grew in three stages.
- The 16 basic colors. Early HTML defined
aqua,black,blue,fuchsia,gray,green,lime,maroon,navy,olive,purple,red,silver,teal,whiteandyellow. Their codes use only the values00,80,C0andFF. - The X11 colors. Browsers adopted a much longer list from the X Window System used on Unix computers, and CSS later made it official. This is the source of names such as
papayawhip,peachpuffanddodgerblue.orangealso joined along the way. rebeccapurple. The newest name,#663399, was added in 2014 in memory of Rebecca Meyer, the daughter of web standards author Eric Meyer.
Because the list was assembled from different sources and never redesigned, it has some well-known quirks.
Quirks worth knowing
darkgrayis lighter thangray.darkgrayis#A9A9A9andgrayis#808080. The two came from different lists.greenis not full green.greenis#008000. The brightest green,#00FF00, is calledlime.- Some names are exact duplicates.
aquaandcyanare both#00FFFF, andfuchsiaandmagentaare both#FF00FF. azureis nearly white. In CSS it is#F0FFFF, not the vivid blue the word usually suggests.- The spread is uneven. There are many near-whites and pastel tones and far fewer dark or muted colors, so dark browns, deep greens and greyish colors often have no close name.
- Names are single lowercase words by convention, but case does not matter.
LightBlueworks;light bluedoes not.
How names map to HEX codes
A color name is a lookup, nothing more. The browser replaces tomato with #FF6347 before it draws anything, so a name and its code are interchangeable everywhere CSS accepts a color.
Going the other way, from a code to a name, only works exactly for the 139 distinct values in the list. Every other code, out of roughly 16.7 million, has no name. The practical answer is the nearest one: treat each color as a point with red, green and blue coordinates, measure the distance to every named color and take the closest.
The Color Name Finder does exactly that. Paste a HEX code or use the picker and it returns the closest CSS name, with a label that says how good the match is, from Exact Match to Far Off. It also lets you search the full list by name or by code, so typing "blue" shows every name containing it and typing "ff" narrows by HEX digits. Clicking any color in the list selects it and shows its HEX, RGB and HSL values.
When to use names in real code
Named colors are convenient for prototypes, demos, debugging outlines and teaching, because border: 1px solid red needs no lookup. For production design systems, HEX or HSL values in CSS variables are the better choice: brand colors rarely match a named color, and the fixed list cannot express tints, shades or transparency.
To convert a named color's code into other notations, paste it into the Color Converter. The guide to HEX, RGB and HSL color codes explains what the notations mean. For curated lists that go beyond CSS names, see shades of green, shades of blue and shades of red.
Try it
Open the Color Name Finder, search the list for a family such as "sea" or "slate", and click a result to select it and copy its name or code. Or paste any HEX code from a design file to find out which of the 148 names it is closest to.