CSS Named Colors: All 148 with Hex, RGB and HSL
CSS defines 148 color keywords, from aliceblue to yellowgreen, that every browser understands in place of a hex code: color: rebeccapurple is exactly #663399. Unlike paint colors, these values are exact by definition: the keyword is the sRGB value.
Color chartTap a keyword for its swatch and nearest RAL colors
| Keyword | Hex | RGB | HSL |
|---|---|---|---|
| Reds | |||
| lightsalmon | #FFA07A | 255, 160, 122 | 17°, 100%, 74% |
| salmon | #FA8072 | 250, 128, 114 | 6°, 93%, 71% |
| darksalmon | #E9967A | 233, 150, 122 | 15°, 72%, 70% |
| lightcoral | #F08080 | 240, 128, 128 | 0°, 79%, 72% |
| indianred | #CD5C5C | 205, 92, 92 | 0°, 53%, 58% |
| crimson | #DC143C | 220, 20, 60 | 348°, 83%, 47% |
| red | #FF0000 | 255, 0, 0 | 0°, 100%, 50% |
| firebrick | #B22222 | 178, 34, 34 | 0°, 68%, 42% |
| darkred | #8B0000 | 139, 0, 0 | 0°, 100%, 27% |
| Pinks | |||
| pink | #FFC0CB | 255, 192, 203 | 350°, 100%, 88% |
| lightpink | #FFB6C1 | 255, 182, 193 | 351°, 100%, 86% |
| hotpink | #FF69B4 | 255, 105, 180 | 330°, 100%, 71% |
| deeppink | #FF1493 | 255, 20, 147 | 328°, 100%, 54% |
| palevioletred | #DB7093 | 219, 112, 147 | 340°, 60%, 65% |
| mediumvioletred | #C71585 | 199, 21, 133 | 322°, 81%, 43% |
| Oranges | |||
| orange | #FFA500 | 255, 165, 0 | 39°, 100%, 50% |
| darkorange | #FF8C00 | 255, 140, 0 | 33°, 100%, 50% |
| coral | #FF7F50 | 255, 127, 80 | 16°, 100%, 66% |
| tomato | #FF6347 | 255, 99, 71 | 9°, 100%, 64% |
| orangered | #FF4500 | 255, 69, 0 | 16°, 100%, 50% |
| Yellows | |||
| gold | #FFD700 | 255, 215, 0 | 51°, 100%, 50% |
| yellow | #FFFF00 | 255, 255, 0 | 60°, 100%, 50% |
| lightyellow | #FFFFE0 | 255, 255, 224 | 60°, 100%, 94% |
| lemonchiffon | #FFFACD | 255, 250, 205 | 54°, 100%, 90% |
| lightgoldenrodyellow | #FAFAD2 | 250, 250, 210 | 60°, 80%, 90% |
| papayawhip | #FFEFD5 | 255, 239, 213 | 37°, 100%, 92% |
| moccasin | #FFE4B5 | 255, 228, 181 | 38°, 100%, 85% |
| peachpuff | #FFDAB9 | 255, 218, 185 | 28°, 100%, 86% |
| palegoldenrod | #EEE8AA | 238, 232, 170 | 55°, 67%, 80% |
| khaki | #F0E68C | 240, 230, 140 | 54°, 77%, 75% |
| darkkhaki | #BDB76B | 189, 183, 107 | 56°, 38%, 58% |
| Greens | |||
| greenyellow | #ADFF2F | 173, 255, 47 | 84°, 100%, 59% |
| chartreuse | #7FFF00 | 127, 255, 0 | 90°, 100%, 50% |
| lawngreen | #7CFC00 | 124, 252, 0 | 90°, 100%, 49% |
| lime | #00FF00 | 0, 255, 0 | 120°, 100%, 50% |
| limegreen | #32CD32 | 50, 205, 50 | 120°, 61%, 50% |
| palegreen | #98FB98 | 152, 251, 152 | 120°, 93%, 79% |
| lightgreen | #90EE90 | 144, 238, 144 | 120°, 73%, 75% |
| mediumspringgreen | #00FA9A | 0, 250, 154 | 157°, 100%, 49% |
| springgreen | #00FF7F | 0, 255, 127 | 150°, 100%, 50% |
| mediumseagreen | #3CB371 | 60, 179, 113 | 147°, 50%, 47% |
| seagreen | #2E8B57 | 46, 139, 87 | 146°, 50%, 36% |
| forestgreen | #228B22 | 34, 139, 34 | 120°, 61%, 34% |
| green | #008000 | 0, 128, 0 | 120°, 100%, 25% |
| darkgreen | #006400 | 0, 100, 0 | 120°, 100%, 20% |
| yellowgreen | #9ACD32 | 154, 205, 50 | 80°, 61%, 50% |
| olivedrab | #6B8E23 | 107, 142, 35 | 80°, 60%, 35% |
| olive | #808000 | 128, 128, 0 | 60°, 100%, 25% |
| darkolivegreen | #556B2F | 85, 107, 47 | 82°, 39%, 30% |
| mediumaquamarine | #66CDAA | 102, 205, 170 | 160°, 51%, 60% |
| darkseagreen | #8FBC8F | 143, 188, 143 | 120°, 25%, 65% |
| lightseagreen | #20B2AA | 32, 178, 170 | 177°, 70%, 41% |
| darkcyan | #008B8B | 0, 139, 139 | 180°, 100%, 27% |
| teal | #008080 | 0, 128, 128 | 180°, 100%, 25% |
| Cyans | |||
| aqua | #00FFFF | 0, 255, 255 | 180°, 100%, 50% |
| cyan | #00FFFF | 0, 255, 255 | 180°, 100%, 50% |
| lightcyan | #E0FFFF | 224, 255, 255 | 180°, 100%, 94% |
| paleturquoise | #AFEEEE | 175, 238, 238 | 180°, 65%, 81% |
| aquamarine | #7FFFD4 | 127, 255, 212 | 160°, 100%, 75% |
| turquoise | #40E0D0 | 64, 224, 208 | 174°, 72%, 56% |
| mediumturquoise | #48D1CC | 72, 209, 204 | 178°, 60%, 55% |
| darkturquoise | #00CED1 | 0, 206, 209 | 181°, 100%, 41% |
| Blues | |||
| cadetblue | #5F9EA0 | 95, 158, 160 | 182°, 25%, 50% |
| steelblue | #4682B4 | 70, 130, 180 | 207°, 44%, 49% |
| lightsteelblue | #B0C4DE | 176, 196, 222 | 214°, 41%, 78% |
| lightblue | #ADD8E6 | 173, 216, 230 | 195°, 53%, 79% |
| powderblue | #B0E0E6 | 176, 224, 230 | 187°, 52%, 80% |
| lightskyblue | #87CEFA | 135, 206, 250 | 203°, 92%, 75% |
| skyblue | #87CEEB | 135, 206, 235 | 197°, 71%, 73% |
| cornflowerblue | #6495ED | 100, 149, 237 | 219°, 79%, 66% |
| deepskyblue | #00BFFF | 0, 191, 255 | 195°, 100%, 50% |
| dodgerblue | #1E90FF | 30, 144, 255 | 210°, 100%, 56% |
| royalblue | #4169E1 | 65, 105, 225 | 225°, 73%, 57% |
| blue | #0000FF | 0, 0, 255 | 240°, 100%, 50% |
| mediumblue | #0000CD | 0, 0, 205 | 240°, 100%, 40% |
| darkblue | #00008B | 0, 0, 139 | 240°, 100%, 27% |
| navy | #000080 | 0, 0, 128 | 240°, 100%, 25% |
| midnightblue | #191970 | 25, 25, 112 | 240°, 64%, 27% |
| Purples and violets | |||
| lavender | #E6E6FA | 230, 230, 250 | 240°, 67%, 94% |
| thistle | #D8BFD8 | 216, 191, 216 | 300°, 24%, 80% |
| plum | #DDA0DD | 221, 160, 221 | 300°, 47%, 75% |
| orchid | #DA70D6 | 218, 112, 214 | 302°, 59%, 65% |
| violet | #EE82EE | 238, 130, 238 | 300°, 76%, 72% |
| fuchsia | #FF00FF | 255, 0, 255 | 300°, 100%, 50% |
| magenta | #FF00FF | 255, 0, 255 | 300°, 100%, 50% |
| mediumorchid | #BA55D3 | 186, 85, 211 | 288°, 59%, 58% |
| darkorchid | #9932CC | 153, 50, 204 | 280°, 61%, 50% |
| darkviolet | #9400D3 | 148, 0, 211 | 282°, 100%, 41% |
| blueviolet | #8A2BE2 | 138, 43, 226 | 271°, 76%, 53% |
| darkmagenta | #8B008B | 139, 0, 139 | 300°, 100%, 27% |
| purple | #800080 | 128, 0, 128 | 300°, 100%, 25% |
| mediumpurple | #9370DB | 147, 112, 219 | 260°, 60%, 65% |
| mediumslateblue | #7B68EE | 123, 104, 238 | 249°, 80%, 67% |
| slateblue | #6A5ACD | 106, 90, 205 | 248°, 53%, 58% |
| darkslateblue | #483D8B | 72, 61, 139 | 248°, 39%, 39% |
| rebeccapurple | #663399 | 102, 51, 153 | 270°, 50%, 40% |
| indigo | #4B0082 | 75, 0, 130 | 275°, 100%, 25% |
| Browns and tans | |||
| cornsilk | #FFF8DC | 255, 248, 220 | 48°, 100%, 93% |
| blanchedalmond | #FFEBCD | 255, 235, 205 | 36°, 100%, 90% |
| bisque | #FFE4C4 | 255, 228, 196 | 33°, 100%, 88% |
| navajowhite | #FFDEAD | 255, 222, 173 | 36°, 100%, 84% |
| wheat | #F5DEB3 | 245, 222, 179 | 39°, 77%, 83% |
| burlywood | #DEB887 | 222, 184, 135 | 34°, 57%, 70% |
| tan | #D2B48C | 210, 180, 140 | 34°, 44%, 69% |
| rosybrown | #BC8F8F | 188, 143, 143 | 0°, 25%, 65% |
| sandybrown | #F4A460 | 244, 164, 96 | 28°, 87%, 67% |
| goldenrod | #DAA520 | 218, 165, 32 | 43°, 74%, 49% |
| darkgoldenrod | #B8860B | 184, 134, 11 | 43°, 89%, 38% |
| peru | #CD853F | 205, 133, 63 | 30°, 59%, 53% |
| chocolate | #D2691E | 210, 105, 30 | 25°, 75%, 47% |
| saddlebrown | #8B4513 | 139, 69, 19 | 25°, 76%, 31% |
| sienna | #A0522D | 160, 82, 45 | 19°, 56%, 40% |
| brown | #A52A2A | 165, 42, 42 | 0°, 59%, 41% |
| maroon | #800000 | 128, 0, 0 | 0°, 100%, 25% |
| Whites and tints | |||
| white | #FFFFFF | 255, 255, 255 | 0°, 0%, 100% |
| snow | #FFFAFA | 255, 250, 250 | 0°, 100%, 99% |
| honeydew | #F0FFF0 | 240, 255, 240 | 120°, 100%, 97% |
| mintcream | #F5FFFA | 245, 255, 250 | 150°, 100%, 98% |
| azure | #F0FFFF | 240, 255, 255 | 180°, 100%, 97% |
| aliceblue | #F0F8FF | 240, 248, 255 | 208°, 100%, 97% |
| ghostwhite | #F8F8FF | 248, 248, 255 | 240°, 100%, 99% |
| whitesmoke | #F5F5F5 | 245, 245, 245 | 0°, 0%, 96% |
| seashell | #FFF5EE | 255, 245, 238 | 25°, 100%, 97% |
| beige | #F5F5DC | 245, 245, 220 | 60°, 56%, 91% |
| oldlace | #FDF5E6 | 253, 245, 230 | 39°, 85%, 95% |
| floralwhite | #FFFAF0 | 255, 250, 240 | 40°, 100%, 97% |
| ivory | #FFFFF0 | 255, 255, 240 | 60°, 100%, 97% |
| antiquewhite | #FAEBD7 | 250, 235, 215 | 34°, 78%, 91% |
| linen | #FAF0E6 | 250, 240, 230 | 30°, 67%, 94% |
| lavenderblush | #FFF0F5 | 255, 240, 245 | 340°, 100%, 97% |
| mistyrose | #FFE4E1 | 255, 228, 225 | 6°, 100%, 94% |
| Grays and black | |||
| gainsboro | #DCDCDC | 220, 220, 220 | 0°, 0%, 86% |
| lightgray | #D3D3D3 | 211, 211, 211 | 0°, 0%, 83% |
| lightgrey | #D3D3D3 | 211, 211, 211 | 0°, 0%, 83% |
| silver | #C0C0C0 | 192, 192, 192 | 0°, 0%, 75% |
| darkgray | #A9A9A9 | 169, 169, 169 | 0°, 0%, 66% |
| darkgrey | #A9A9A9 | 169, 169, 169 | 0°, 0%, 66% |
| gray | #808080 | 128, 128, 128 | 0°, 0%, 50% |
| grey | #808080 | 128, 128, 128 | 0°, 0%, 50% |
| dimgray | #696969 | 105, 105, 105 | 0°, 0%, 41% |
| dimgrey | #696969 | 105, 105, 105 | 0°, 0%, 41% |
| lightslategray | #778899 | 119, 136, 153 | 210°, 14%, 53% |
| lightslategrey | #778899 | 119, 136, 153 | 210°, 14%, 53% |
| slategray | #708090 | 112, 128, 144 | 210°, 13%, 50% |
| slategrey | #708090 | 112, 128, 144 | 210°, 13%, 50% |
| darkslategray | #2F4F4F | 47, 79, 79 | 180°, 25%, 25% |
| darkslategrey | #2F4F4F | 47, 79, 79 | 180°, 25%, 25% |
| black | #000000 | 0, 0, 0 | 0°, 0%, 0% |
No exact match. The nearest sizes:
How to use a named color
Write the keyword anywhere CSS expects a color: color: tomato;, border: 1px solid slategray;, fill: steelblue in SVG. Keywords are case-insensitive (Tomato works) but are conventionally written in lower case without spaces.
Each keyword maps to one fixed sRGB value. rebeccapurple is always #663399, rgb(102 51 153) and hsl(270 50% 40%); these forms are interchangeable. The HSL values in the chart are rounded to whole degrees and percent; the hex and RGB values are exact.
Some keywords are aliases: aqua = cyan, fuchsia = magenta, and every gray name also exists as grey (gray/grey, darkgray/darkgrey, slategray/slategrey …). The 'Same value as' field shows these pairs.
About CSS Named Colors
The list goes back to the X11 window system's color database. HTML 4 and CSS1 adopted only 16 basic keywords (black, silver, gray, white, maroon, red, purple, fuchsia, green, lime, olive, yellow, navy, blue, teal, aqua); browsers accepted the larger X11 set anyway, and CSS3 standardized it. CSS Color Level 4 added rebeccapurple in 2014 in memory of Rebecca Meyer, bringing the total to 148 keywords (counting duplicates such as gray/grey). transparent and currentcolor are also valid color keywords but are not fixed colors, so they are not listed.
The names are historical, not systematic, and a few are famously odd. darkgray (#A9A9A9) is lighter than gray (#808080), because gray comes from HTML and darkgray from X11. green (#008000) is a dark green; the pure sRGB green #00FF00 is called lime. maroon, purple and olive follow HTML, not X11, so they are darker than many people expect.
Named colors are handy for prototypes, examples and quick tests. For a product palette use hex or rgb() values you control, and check text contrast: the color pages show the WCAG contrast ratio of white and black text on each color (4.5:1 is the minimum for body text, 3:1 for large text).
Hex, RGB and HSL in one line
A hex code is three bytes: #663399 = red 0x66 (102), green 0x33 (51), blue 0x99 (153). HSL describes the same color as hue (0–360°, red 0°, green 120°, blue 240°), saturation and lightness. Three-digit hex is shorthand that doubles each digit: #639 = #663399.
From a CSS color to paint
Each color page lists the closest RAL Classic colors, ranked by the CIEDE2000 difference of their screen values. Use it as a starting point when a designer's web color has to become a powder-coat or paint color, then approve the physical sample, because a RAL card never looks exactly like a screen.
Questions
How many named colors does CSS have?
148 keywords in CSS Color Level 4, counting aliases such as gray/grey and aqua/cyan separately. That is 139 distinct colors. transparent and currentcolor are additional keywords that are not fixed colors.
What is the hex code of rebeccapurple?
rebeccapurple is #663399, rgb(102, 51, 153), hsl(270°, 50%, 40%).
Why is darkgray lighter than gray?
gray (#808080) comes from the HTML 4 color list, darkgray (#A9A9A9) from the older X11 list, where plain gray was #BEBEBE. CSS kept both for compatibility, so darkgray ended up lighter than gray.
Are color names case-sensitive in CSS?
No. Tomato, TOMATO and tomato all work. Lower case is the convention.
Is green the same as #00FF00?
No. CSS green is #008000. #00FF00 is lime.
Sources
- W3C: CSS Color Module Level 4, §6.1 Named Colors
- MDN Web Docs: <named-color>
- npm package color-name 2.1.1 (MIT): keyword list used as a cross-check
- Sharma, Wu & Dalal (2005): The CIEDE2000 color-difference formula
Values last checked against these sources on November 15, 2026. · How we check data
Reference values for planning and identification. Confirm critical dimensions with the manufacturer's drawing or the current edition of the standard before production.