HTML color names and codes

Every named color in CSS, from aliceblue to yellowgreen, with its HEX, RGB and HSL code. Search by name or code, sort the list, copy any value, or find the named color closest to one of your own. For shades, palettes and contrast of the most-searched colors, see the hex color codes pages.

Copy button copies

Nearest named color

Showing all 148 colors in 11 hue groups.

Reds (9)

Reds: CSS named colors
SwatchNameHEXRGBHSLCopy
salmon#FA8072rgb(250, 128, 114)hsl(6, 93%, 71%)
lightcoral#F08080rgb(240, 128, 128)hsl(0, 79%, 72%)
tomato#FF6347rgb(255, 99, 71)hsl(9, 100%, 64%)
red#FF0000rgb(255, 0, 0)hsl(0, 100%, 50%)
indianred#CD5C5Crgb(205, 92, 92)hsl(0, 53%, 58%)
crimson#DC143Crgb(220, 20, 60)hsl(348, 83%, 47%)
firebrick#B22222rgb(178, 34, 34)hsl(0, 68%, 42%)
darkred#8B0000rgb(139, 0, 0)hsl(0, 100%, 27%)
maroon#800000rgb(128, 0, 0)hsl(0, 100%, 25%)

Pinks (6)

Pinks: CSS named colors
SwatchNameHEXRGBHSLCopy
pink#FFC0CBrgb(255, 192, 203)hsl(350, 100%, 88%)
lightpink#FFB6C1rgb(255, 182, 193)hsl(351, 100%, 86%)
hotpink#FF69B4rgb(255, 105, 180)hsl(330, 100%, 71%)
palevioletred#DB7093rgb(219, 112, 147)hsl(340, 60%, 65%)
deeppink#FF1493rgb(255, 20, 147)hsl(328, 100%, 54%)
mediumvioletred#C71585rgb(199, 21, 133)hsl(322, 81%, 43%)

Oranges (6)

Oranges: CSS named colors
SwatchNameHEXRGBHSLCopy
lightsalmon#FFA07Argb(255, 160, 122)hsl(17, 100%, 74%)
orange#FFA500rgb(255, 165, 0)hsl(39, 100%, 50%)
darksalmon#E9967Argb(233, 150, 122)hsl(15, 72%, 70%)
darkorange#FF8C00rgb(255, 140, 0)hsl(33, 100%, 50%)
coral#FF7F50rgb(255, 127, 80)hsl(16, 100%, 66%)
orangered#FF4500rgb(255, 69, 0)hsl(16, 100%, 50%)

Yellows (8)

Yellows: CSS named colors
SwatchNameHEXRGBHSLCopy
lemonchiffon#FFFACDrgb(255, 250, 205)hsl(54, 100%, 90%)
lightgoldenrodyellow#FAFAD2rgb(250, 250, 210)hsl(60, 80%, 90%)
yellow#FFFF00rgb(255, 255, 0)hsl(60, 100%, 50%)
palegoldenrod#EEE8AArgb(238, 232, 170)hsl(55, 67%, 80%)
khaki#F0E68Crgb(240, 230, 140)hsl(54, 77%, 75%)
gold#FFD700rgb(255, 215, 0)hsl(51, 100%, 50%)
darkkhaki#BDB76Brgb(189, 183, 107)hsl(56, 38%, 58%)
goldenrod#DAA520rgb(218, 165, 32)hsl(43, 74%, 49%)

Greens (19)

Greens: CSS named colors
SwatchNameHEXRGBHSLCopy
greenyellow#ADFF2Frgb(173, 255, 47)hsl(84, 100%, 59%)
palegreen#98FB98rgb(152, 251, 152)hsl(120, 93%, 79%)
chartreuse#7FFF00rgb(127, 255, 0)hsl(90, 100%, 50%)
lawngreen#7CFC00rgb(124, 252, 0)hsl(90, 100%, 49%)
springgreen#00FF7Frgb(0, 255, 127)hsl(150, 100%, 50%)
lightgreen#90EE90rgb(144, 238, 144)hsl(120, 73%, 75%)
mediumspringgreen#00FA9Argb(0, 250, 154)hsl(157, 100%, 49%)
lime#00FF00rgb(0, 255, 0)hsl(120, 100%, 50%)
yellowgreen#9ACD32rgb(154, 205, 50)hsl(80, 61%, 50%)
darkseagreen#8FBC8Frgb(143, 188, 143)hsl(120, 25%, 65%)
limegreen#32CD32rgb(50, 205, 50)hsl(120, 61%, 50%)
mediumseagreen#3CB371rgb(60, 179, 113)hsl(147, 50%, 47%)
olivedrab#6B8E23rgb(107, 142, 35)hsl(80, 60%, 35%)
olive#808000rgb(128, 128, 0)hsl(60, 100%, 25%)
seagreen#2E8B57rgb(46, 139, 87)hsl(146, 50%, 36%)
forestgreen#228B22rgb(34, 139, 34)hsl(120, 61%, 34%)
green#008000rgb(0, 128, 0)hsl(120, 100%, 25%)
darkolivegreen#556B2Frgb(85, 107, 47)hsl(82, 39%, 30%)
darkgreen#006400rgb(0, 100, 0)hsl(120, 100%, 20%)

Cyans (13)

Cyans: CSS named colors
SwatchNameHEXRGBHSLCopy
aquamarine#7FFFD4rgb(127, 255, 212)hsl(160, 100%, 75%)
paleturquoise#AFEEEErgb(175, 238, 238)hsl(180, 65%, 81%)
aqua#00FFFFrgb(0, 255, 255)hsl(180, 100%, 50%)
cyan#00FFFFrgb(0, 255, 255)hsl(180, 100%, 50%)
powderblue#B0E0E6rgb(176, 224, 230)hsl(187, 52%, 80%)
turquoise#40E0D0rgb(64, 224, 208)hsl(174, 72%, 56%)
mediumturquoise#48D1CCrgb(72, 209, 204)hsl(178, 60%, 55%)
mediumaquamarine#66CDAArgb(102, 205, 170)hsl(160, 51%, 60%)
darkturquoise#00CED1rgb(0, 206, 209)hsl(181, 100%, 41%)
lightseagreen#20B2AArgb(32, 178, 170)hsl(177, 70%, 41%)
cadetblue#5F9EA0rgb(95, 158, 160)hsl(182, 25%, 50%)
darkcyan#008B8Brgb(0, 139, 139)hsl(180, 100%, 27%)
teal#008080rgb(0, 128, 128)hsl(180, 100%, 25%)

Blues (18)

Blues: CSS named colors
SwatchNameHEXRGBHSLCopy
lavender#E6E6FArgb(230, 230, 250)hsl(240, 67%, 94%)
lightblue#ADD8E6rgb(173, 216, 230)hsl(195, 53%, 79%)
lightskyblue#87CEFArgb(135, 206, 250)hsl(203, 92%, 75%)
skyblue#87CEEBrgb(135, 206, 235)hsl(197, 71%, 73%)
lightsteelblue#B0C4DErgb(176, 196, 222)hsl(214, 41%, 78%)
deepskyblue#00BFFFrgb(0, 191, 255)hsl(195, 100%, 50%)
cornflowerblue#6495EDrgb(100, 149, 237)hsl(219, 79%, 66%)
dodgerblue#1E90FFrgb(30, 144, 255)hsl(210, 100%, 56%)
mediumslateblue#7B68EErgb(123, 104, 238)hsl(249, 80%, 67%)
steelblue#4682B4rgb(70, 130, 180)hsl(207, 44%, 49%)
royalblue#4169E1rgb(65, 105, 225)hsl(225, 73%, 57%)
slateblue#6A5ACDrgb(106, 90, 205)hsl(248, 53%, 58%)
blue#0000FFrgb(0, 0, 255)hsl(240, 100%, 50%)
darkslateblue#483D8Brgb(72, 61, 139)hsl(248, 39%, 39%)
mediumblue#0000CDrgb(0, 0, 205)hsl(240, 100%, 40%)
midnightblue#191970rgb(25, 25, 112)hsl(240, 64%, 27%)
darkblue#00008Brgb(0, 0, 139)hsl(240, 100%, 27%)
navy#000080rgb(0, 0, 128)hsl(240, 100%, 25%)

Purples (15)

Purples: CSS named colors
SwatchNameHEXRGBHSLCopy
thistle#D8BFD8rgb(216, 191, 216)hsl(300, 24%, 80%)
plum#DDA0DDrgb(221, 160, 221)hsl(300, 47%, 75%)
violet#EE82EErgb(238, 130, 238)hsl(300, 76%, 72%)
orchid#DA70D6rgb(218, 112, 214)hsl(302, 59%, 65%)
fuchsia#FF00FFrgb(255, 0, 255)hsl(300, 100%, 50%)
magenta#FF00FFrgb(255, 0, 255)hsl(300, 100%, 50%)
mediumpurple#9370DBrgb(147, 112, 219)hsl(260, 60%, 65%)
mediumorchid#BA55D3rgb(186, 85, 211)hsl(288, 59%, 58%)
darkorchid#9932CCrgb(153, 50, 204)hsl(280, 61%, 50%)
blueviolet#8A2BE2rgb(138, 43, 226)hsl(271, 76%, 53%)
darkviolet#9400D3rgb(148, 0, 211)hsl(282, 100%, 41%)
darkmagenta#8B008Brgb(139, 0, 139)hsl(300, 100%, 27%)
rebeccapurple#663399rgb(102, 51, 153)hsl(270, 50%, 40%)
purple#800080rgb(128, 0, 128)hsl(300, 100%, 25%)
indigo#4B0082rgb(75, 0, 130)hsl(275, 100%, 25%)

Browns (15)

Browns: CSS named colors
SwatchNameHEXRGBHSLCopy
blanchedalmond#FFEBCDrgb(255, 235, 205)hsl(36, 100%, 90%)
bisque#FFE4C4rgb(255, 228, 196)hsl(33, 100%, 88%)
moccasin#FFE4B5rgb(255, 228, 181)hsl(38, 100%, 85%)
peachpuff#FFDAB9rgb(255, 218, 185)hsl(28, 100%, 86%)
wheat#F5DEB3rgb(245, 222, 179)hsl(39, 77%, 83%)
burlywood#DEB887rgb(222, 184, 135)hsl(34, 57%, 70%)
tan#D2B48Crgb(210, 180, 140)hsl(34, 44%, 69%)
sandybrown#F4A460rgb(244, 164, 96)hsl(28, 87%, 67%)
rosybrown#BC8F8Frgb(188, 143, 143)hsl(0, 25%, 65%)
peru#CD853Frgb(205, 133, 63)hsl(30, 59%, 53%)
darkgoldenrod#B8860Brgb(184, 134, 11)hsl(43, 89%, 38%)
chocolate#D2691Ergb(210, 105, 30)hsl(25, 75%, 47%)
sienna#A0522Drgb(160, 82, 45)hsl(19, 56%, 40%)
brown#A52A2Argb(165, 42, 42)hsl(0, 59%, 41%)
saddlebrown#8B4513rgb(139, 69, 19)hsl(25, 76%, 31%)

Whites (22)

Whites: CSS named colors
SwatchNameHEXRGBHSLCopy
white#FFFFFFrgb(255, 255, 255)hsl(0, 0%, 100%)
ivory#FFFFF0rgb(255, 255, 240)hsl(60, 100%, 97%)
lightyellow#FFFFE0rgb(255, 255, 224)hsl(60, 100%, 94%)
mintcream#F5FFFArgb(245, 255, 250)hsl(150, 100%, 98%)
azure#F0FFFFrgb(240, 255, 255)hsl(180, 100%, 97%)
snow#FFFAFArgb(255, 250, 250)hsl(0, 100%, 99%)
floralwhite#FFFAF0rgb(255, 250, 240)hsl(40, 100%, 97%)
honeydew#F0FFF0rgb(240, 255, 240)hsl(120, 100%, 97%)
ghostwhite#F8F8FFrgb(248, 248, 255)hsl(240, 100%, 99%)
lightcyan#E0FFFFrgb(224, 255, 255)hsl(180, 100%, 94%)
cornsilk#FFF8DCrgb(255, 248, 220)hsl(48, 100%, 93%)
seashell#FFF5EErgb(255, 245, 238)hsl(25, 100%, 97%)
aliceblue#F0F8FFrgb(240, 248, 255)hsl(208, 100%, 97%)
oldlace#FDF5E6rgb(253, 245, 230)hsl(39, 85%, 95%)
whitesmoke#F5F5F5rgb(245, 245, 245)hsl(0, 0%, 96%)
lavenderblush#FFF0F5rgb(255, 240, 245)hsl(340, 100%, 97%)
beige#F5F5DCrgb(245, 245, 220)hsl(60, 56%, 91%)
linen#FAF0E6rgb(250, 240, 230)hsl(30, 67%, 94%)
papayawhip#FFEFD5rgb(255, 239, 213)hsl(37, 100%, 92%)
antiquewhite#FAEBD7rgb(250, 235, 215)hsl(34, 78%, 91%)
mistyrose#FFE4E1rgb(255, 228, 225)hsl(6, 100%, 94%)
navajowhite#FFDEADrgb(255, 222, 173)hsl(36, 100%, 84%)

Grays and blacks (17)

Grays and blacks: CSS named colors
SwatchNameHEXRGBHSLCopy
gainsboro#DCDCDCrgb(220, 220, 220)hsl(0, 0%, 86%)
lightgray#D3D3D3rgb(211, 211, 211)hsl(0, 0%, 83%)
lightgrey#D3D3D3rgb(211, 211, 211)hsl(0, 0%, 83%)
silver#C0C0C0rgb(192, 192, 192)hsl(0, 0%, 75%)
darkgray#A9A9A9rgb(169, 169, 169)hsl(0, 0%, 66%)
darkgrey#A9A9A9rgb(169, 169, 169)hsl(0, 0%, 66%)
lightslategray#778899rgb(119, 136, 153)hsl(210, 14%, 53%)
lightslategrey#778899rgb(119, 136, 153)hsl(210, 14%, 53%)
gray#808080rgb(128, 128, 128)hsl(0, 0%, 50%)
grey#808080rgb(128, 128, 128)hsl(0, 0%, 50%)
slategray#708090rgb(112, 128, 144)hsl(210, 13%, 50%)
slategrey#708090rgb(112, 128, 144)hsl(210, 13%, 50%)
dimgray#696969rgb(105, 105, 105)hsl(0, 0%, 41%)
dimgrey#696969rgb(105, 105, 105)hsl(0, 0%, 41%)
darkslategray#2F4F4Frgb(47, 79, 79)hsl(180, 25%, 25%)
darkslategrey#2F4F4Frgb(47, 79, 79)hsl(180, 25%, 25%)
black#000000rgb(0, 0, 0)hsl(0, 0%, 0%)

How to use the HTML color names list

  1. Scroll the list, or use the hue links (Reds, Blues, Grays and blacks and so on) to jump to a group. Each row shows the swatch, the CSS name and its HEX, RGB and HSL codes.
  2. Type in Search names or codes to filter: part of a name such as sea, a HEX code such as #ff6347 or f63, or RGB numbers such as 255 99 71.
  3. Change Sort by to list the colors alphabetically, by hue angle, or by lightness instead of by group.
  4. Choose what the Copy buttons copy (the name, HEX, RGB or HSL), then press Copy on any row.
  5. To match a color of your own, type it or pick it under Nearest named color. You get the three closest names and their distance from your color.

What HTML color names are

A named color is a keyword you can write instead of a numeric code: color: tomato means exactly the same as color: #ff6347. People search for them as HTML color names because they started in HTML attributes such as bgcolor, but today they are defined by CSS and work anywhere a CSS color is accepted, including SVG, the canvas API and inline style attributes.

All named colors are sRGB colors and all are fully opaque. Each one is just a shortcut for a fixed HEX value, so the browser treats tomato and #ff6347 identically.

The CSS Color Level 4 list

The current definition is CSS Color Module Level 4, section 6.1. Its table lists 148 opaque named colors, which is the set on this page. A few details from the specification:

The specification also says plainly that the names are kept for compatibility and that their use is not encouraged: they are spread unevenly across the color range and are not consistent with each other. For example, darkgray (#a9a9a9) is lighter than gray (#808080).

The 16 basic HTML 4 colors

HTML 4.01 defined only these sixteen. They are still valid in CSS with the same values.

NameHEXNameHEX
aqua#00FFFF navy#000080
black#000000 olive#808000
blue#0000FF purple#800080
fuchsia#FF00FF red#FF0000
gray#808080 silver#C0C0C0
green#008000 teal#008080
lime#00FF00 white#FFFFFF
maroon#800000 yellow#FFFF00

How the hue groups are worked out

Names don't always describe the color, so the groups are computed from each color's value. Pale colors with almost no tint (OKLCH lightness of at least 94% and chroma below 0.042) go to whites, and colors with almost no chroma go to grays. Browns are orange-to-gold hues that are darker or more muted than orange and gold, plus pale beiges such as wheat and bisque, and dark, moderately saturated reds such as brown itself. Everything else is grouped by its HSL hue angle. Names ending in white, gray or grey, or brown stay in that group, so navajowhite sits with the whites even though it is a fairly strong beige.

A few results may surprise you: olive is grouped with the greens, lavender (hue 240°) with the blues, tomato with the reds and lightseagreen with the cyans.

Worked example: the nearest name to #FF6600

The nearest-name finder converts your color and every named color to OKLab, a color space designed so that equal distances look about equally different, and measures the straight-line distance, called deltaE OK. For #FF6600 the closest three are:

NameHEXdeltaE OK
tomato#FF63470.0399
orangered#FF45000.0532
coral#FF7F500.0545

CSS Color 4 treats a deltaE OK of 0.02 as one just noticeable difference in its gamut-mapping rules, so tomato is about two noticeable steps from #FF6600: close, but visibly different side by side. A distance of 0 means an exact match, as with #808080 and gray.

Names or HEX codes?

System colors

CSS also has system color keywords such as Canvas, CanvasText, LinkText, ButtonFace, ButtonText, Field, Highlight and AccentColor. They are not fixed values: they reflect the colors chosen by the browser, the operating system or the user, follow the element's color scheme (light or dark), and expose the user's palette in forced colors mode, such as Windows high contrast. Older keywords such as ActiveBorder and InactiveBorder are deprecated. Use system colors in matching pairs, such as CanvasText on Canvas, because other combinations are not guaranteed to contrast.

Common mistakes

Key terms

Named color
A CSS keyword such as tomato or rebeccapurple that stands for a fixed sRGB color. CSS Color Level 4 defines 148 of them, all opaque and case-insensitive.
X11 color names
The color list from the X Window System on Unix, which SVG 1.1 adopted and CSS later took over. Most of the 148 CSS named colors come from it.
System color
A CSS keyword such as Canvas, CanvasText or LinkText whose value comes from the browser, the operating system or the user's settings, rather than a fixed code. System colors adapt to light and dark color schemes and to forced colors mode.
currentcolor
A CSS keyword that means the value of the element's own color property. It lets borders, outlines and SVG fills follow the text color automatically.
Hue family
A group of colors with a similar hue, such as reds or blues. On this page each named color is assigned to one family using its OKLCH and HSL values.
deltaE OK
The straight-line distance between two colors in OKLab. A value of 0 means identical. CSS Color 4 uses it for gamut mapping and treats 0.02 as a just-noticeable difference.
ASCII case-insensitive
Matching that ignores the difference between upper- and lowercase English letters A to Z. CSS keywords, including color names, are matched this way.

Frequently asked questions

How many HTML color names are there?
CSS Color Level 4 defines 148 named colors. Because of synonyms (aqua and cyan, fuchsia and magenta, and seven gray and grey pairs), they cover 139 distinct colors.
Are CSS color names case-sensitive?
No. Color names are ASCII case-insensitive, so Red, RED and red all work. Lowercase is the usual style.
Is it gray or grey in CSS?
Both. Every name that contains gray also accepts grey, for example darkslategray and darkslategrey, and both spellings give the same color.
Is transparent a named color?
CSS Color 4 counts it as a named color meaning transparent black, rgb(0 0 0 / 0), but it is defined in its own section and is not one of the 148 opaque colors in the table. currentcolor is a separate keyword.
Why is darkgray lighter than gray?
The names come from different sources: gray is the original HTML value #808080, while darkgray (#A9A9A9) comes from the X11 list. The specification keeps both for compatibility.
What color is rebeccapurple?
rebeccapurple is #663399, or rgb(102, 51, 153). It was added in CSS Color Level 4 in memory of Rebecca Meyer.
How do I find the CSS name for a HEX code?
Type the code in the search box. If it is not an exact named color, use the nearest named color finder, which lists the closest names by deltaE OK distance.
Do named colors work in HTML attributes?
Yes. Old attributes such as bgcolor and color accept the names, and so do style attributes and SVG fill and stroke.

Sources: CSS Color Module Level 4: named colors, system colors, HTML 4.01: colors, Eric Meyer: rebeccapurple. Last checked 2026-11-17.