GameParticles
Colors

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.

  1. The 16 basic colors. Early HTML defined aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white and yellow. Their codes use only the values 00, 80, C0 and FF.
  2. 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, peachpuff and dodgerblue. orange also joined along the way.
  3. 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

  • darkgray is lighter than gray. darkgray is #A9A9A9 and gray is #808080. The two came from different lists.
  • green is not full green. green is #008000. The brightest green, #00FF00, is called lime.
  • Some names are exact duplicates. aqua and cyan are both #00FFFF, and fuchsia and magenta are both #FF00FF.
  • azure is 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. LightBlue works; light blue does 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.

Tools in this guide

Frequently asked questions

How many color names are there in CSS?

There are 148 named colors in CSS. Because a few are duplicates, such as aqua and cyan, fuchsia and magenta, and the seven gray and grey spellings, they cover 139 distinct color values. The keyword transparent is separate and is not counted.

What are the 16 basic color names?

The original HTML set is aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white and yellow. Every other CSS color name was added later, most of them from the X11 color list.

Are CSS color names case sensitive?

No. CSS color keywords are case-insensitive, so RebeccaPurple, rebeccapurple and REBECCAPURPLE all work. They must be written as one word with no spaces or hyphens: light blue and light-blue are both invalid, lightblue is correct.

How do I find the name of a color from a hex code?

Compare the code with the list of named colors and take the nearest one. A color name finder does this automatically. Since there are millions of possible hex codes and only 148 CSS names, most codes get a closest match, not an exact one.

More colors guides

JSON Formatter
Developer · Format, validate and minify JSON with syntax highlighting.
↵
Base64 Encode / Decode
Developer · Encode text to Base64 or decode Base64 back to plain text.
↵
URL Encoder / Decoder
Developer · Encode or decode URL components and query strings.
↵
Hash Generator
Developer · Generate MD5, SHA-1, SHA-256 and SHA-512 hashes.
↵
UUID Generator
Developer · Generate UUIDs v4 (random) in bulk with one click.
↵
Regex Tester
Developer · Test regular expressions against text with live match highlighting.
↵
Word Counter
Text · Count words, characters, sentences, paragraphs and reading time.
↵
Case Converter
Text · Convert text between UPPER, lower, Title, camelCase, snake_case and more.
↵
List Sorter
Text · Sort, reverse, deduplicate and shuffle lists of text.
↵
Markdown Preview
Text · Write Markdown and see a live rendered preview side by side.
↵
Percentage Calculator
Numbers · Calculate percentages, increases, decreases and what % one number is of another.
↵
Color Converter
Colors · Convert colors between HEX, RGB, HSL and HSV instantly.
↵
Snake
Arcade · Eat food, grow longer, don't hit the walls. A timeless classic.
↵
2048
Puzzle · Slide tiles and combine them to reach the legendary 2048 tile.
↵
Word Grid
Puzzle · Guess the hidden five letter word in six tries using color clues.
↵
Sudoku
Puzzle · Fill the 9x9 grid with logic. Four difficulties from easy to expert.
↵
Minesweeper
Strategy · Use number clues to clear the minefield. Classic logic, three levels.
↵
Breakout
Arcade · Smash every brick with paddle and ball. Power-ups, combos, endless levels.
↵
Typing Practice
Casual · Build your WPM and accuracy with timed drills from 30 seconds to 5 minutes. Find your weak keys.
↵
TypeRunner
Arcade · Multiplayer typing race. Race friends by link, beat computer runners, or chase your own ghost.
↵
Typing Blocks
Arcade · Type each word before its wooden block lands. Miss, and the pile climbs toward the line.
↵
Bubble Shooter
Arcade · Aim, bank shots off the walls, and pop groups of three or more bubbles.
↵
Road Rush
Arcade · Race seven rivals through traffic and punch your way to the front.
↵