CSS color names — all 148 named colours with hex and RGB

All 148 named colours from CSS Color Level 4 in one searchable table, each with its hex code, rgb() value and a swatch, so you can go from a name to a value or from a hex code back to a name.

Live demo · real result from this tool
Showing148 of 148 colours

Table

NameHexRGB
aliceblue#f0f8ffrgb(240, 248, 255)
antiquewhite#faebd7rgb(250, 235, 215)
aqua#00ffffrgb(0, 255, 255)
aquamarine#7fffd4rgb(127, 255, 212)
azure#f0ffffrgb(240, 255, 255)
beige#f5f5dcrgb(245, 245, 220)
bisque#ffe4c4rgb(255, 228, 196)
black#000000rgb(0, 0, 0)
blanchedalmond#ffebcdrgb(255, 235, 205)
blue#0000ffrgb(0, 0, 255)
blueviolet#8a2be2rgb(138, 43, 226)
brown#a52a2argb(165, 42, 42)
burlywood#deb887rgb(222, 184, 135)
cadetblue#5f9ea0rgb(95, 158, 160)
chartreuse#7fff00rgb(127, 255, 0)
chocolate#d2691ergb(210, 105, 30)
coral#ff7f50rgb(255, 127, 80)
cornflowerblue#6495edrgb(100, 149, 237)
cornsilk#fff8dcrgb(255, 248, 220)
crimson#dc143crgb(220, 20, 60)
cyan#00ffffrgb(0, 255, 255)
darkblue#00008brgb(0, 0, 139)
darkcyan#008b8brgb(0, 139, 139)
darkgoldenrod#b8860brgb(184, 134, 11)
darkgray#a9a9a9rgb(169, 169, 169)
darkgreen#006400rgb(0, 100, 0)
darkgrey#a9a9a9rgb(169, 169, 169)
darkkhaki#bdb76brgb(189, 183, 107)
darkmagenta#8b008brgb(139, 0, 139)
darkolivegreen#556b2frgb(85, 107, 47)
darkorange#ff8c00rgb(255, 140, 0)
darkorchid#9932ccrgb(153, 50, 204)
darkred#8b0000rgb(139, 0, 0)
darksalmon#e9967argb(233, 150, 122)
darkseagreen#8fbc8frgb(143, 188, 143)
darkslateblue#483d8brgb(72, 61, 139)
darkslategray#2f4f4frgb(47, 79, 79)
darkslategrey#2f4f4frgb(47, 79, 79)
darkturquoise#00ced1rgb(0, 206, 209)
darkviolet#9400d3rgb(148, 0, 211)
deeppink#ff1493rgb(255, 20, 147)
deepskyblue#00bfffrgb(0, 191, 255)
dimgray#696969rgb(105, 105, 105)
dimgrey#696969rgb(105, 105, 105)
dodgerblue#1e90ffrgb(30, 144, 255)
firebrick#b22222rgb(178, 34, 34)
floralwhite#fffaf0rgb(255, 250, 240)
forestgreen#228b22rgb(34, 139, 34)
fuchsia#ff00ffrgb(255, 0, 255)
gainsboro#dcdcdcrgb(220, 220, 220)
ghostwhite#f8f8ffrgb(248, 248, 255)
gold#ffd700rgb(255, 215, 0)
goldenrod#daa520rgb(218, 165, 32)
gray#808080rgb(128, 128, 128)
green#008000rgb(0, 128, 0)
greenyellow#adff2frgb(173, 255, 47)
grey#808080rgb(128, 128, 128)
honeydew#f0fff0rgb(240, 255, 240)
hotpink#ff69b4rgb(255, 105, 180)
indianred#cd5c5crgb(205, 92, 92)
indigo#4b0082rgb(75, 0, 130)
ivory#fffff0rgb(255, 255, 240)
khaki#f0e68crgb(240, 230, 140)
lavender#e6e6fargb(230, 230, 250)
lavenderblush#fff0f5rgb(255, 240, 245)
lawngreen#7cfc00rgb(124, 252, 0)
lemonchiffon#fffacdrgb(255, 250, 205)
lightblue#add8e6rgb(173, 216, 230)
lightcoral#f08080rgb(240, 128, 128)
lightcyan#e0ffffrgb(224, 255, 255)
lightgoldenrodyellow#fafad2rgb(250, 250, 210)
lightgray#d3d3d3rgb(211, 211, 211)
lightgreen#90ee90rgb(144, 238, 144)
lightgrey#d3d3d3rgb(211, 211, 211)
lightpink#ffb6c1rgb(255, 182, 193)
lightsalmon#ffa07argb(255, 160, 122)
lightseagreen#20b2aargb(32, 178, 170)
lightskyblue#87cefargb(135, 206, 250)
lightslategray#778899rgb(119, 136, 153)
lightslategrey#778899rgb(119, 136, 153)
lightsteelblue#b0c4dergb(176, 196, 222)
lightyellow#ffffe0rgb(255, 255, 224)
lime#00ff00rgb(0, 255, 0)
limegreen#32cd32rgb(50, 205, 50)
linen#faf0e6rgb(250, 240, 230)
magenta#ff00ffrgb(255, 0, 255)
maroon#800000rgb(128, 0, 0)
mediumaquamarine#66cdaargb(102, 205, 170)
mediumblue#0000cdrgb(0, 0, 205)
mediumorchid#ba55d3rgb(186, 85, 211)
mediumpurple#9370dbrgb(147, 112, 219)
mediumseagreen#3cb371rgb(60, 179, 113)
mediumslateblue#7b68eergb(123, 104, 238)
mediumspringgreen#00fa9argb(0, 250, 154)
mediumturquoise#48d1ccrgb(72, 209, 204)
mediumvioletred#c71585rgb(199, 21, 133)
midnightblue#191970rgb(25, 25, 112)
mintcream#f5fffargb(245, 255, 250)
mistyrose#ffe4e1rgb(255, 228, 225)
moccasin#ffe4b5rgb(255, 228, 181)
navajowhite#ffdeadrgb(255, 222, 173)
navy#000080rgb(0, 0, 128)
oldlace#fdf5e6rgb(253, 245, 230)
olive#808000rgb(128, 128, 0)
olivedrab#6b8e23rgb(107, 142, 35)
orange#ffa500rgb(255, 165, 0)
orangered#ff4500rgb(255, 69, 0)
orchid#da70d6rgb(218, 112, 214)
palegoldenrod#eee8aargb(238, 232, 170)
palegreen#98fb98rgb(152, 251, 152)
paleturquoise#afeeeergb(175, 238, 238)
palevioletred#db7093rgb(219, 112, 147)
papayawhip#ffefd5rgb(255, 239, 213)
peachpuff#ffdab9rgb(255, 218, 185)
peru#cd853frgb(205, 133, 63)
pink#ffc0cbrgb(255, 192, 203)
plum#dda0ddrgb(221, 160, 221)
powderblue#b0e0e6rgb(176, 224, 230)
purple#800080rgb(128, 0, 128)
rebeccapurple#663399rgb(102, 51, 153)
red#ff0000rgb(255, 0, 0)
rosybrown#bc8f8frgb(188, 143, 143)
royalblue#4169e1rgb(65, 105, 225)
saddlebrown#8b4513rgb(139, 69, 19)
salmon#fa8072rgb(250, 128, 114)
sandybrown#f4a460rgb(244, 164, 96)
seagreen#2e8b57rgb(46, 139, 87)
seashell#fff5eergb(255, 245, 238)
sienna#a0522drgb(160, 82, 45)
silver#c0c0c0rgb(192, 192, 192)
skyblue#87ceebrgb(135, 206, 235)
slateblue#6a5acdrgb(106, 90, 205)
slategray#708090rgb(112, 128, 144)
slategrey#708090rgb(112, 128, 144)
snow#fffafargb(255, 250, 250)
springgreen#00ff7frgb(0, 255, 127)
steelblue#4682b4rgb(70, 130, 180)
tan#d2b48crgb(210, 180, 140)
teal#008080rgb(0, 128, 128)
thistle#d8bfd8rgb(216, 191, 216)
tomato#ff6347rgb(255, 99, 71)
turquoise#40e0d0rgb(64, 224, 208)
violet#ee82eergb(238, 130, 238)
wheat#f5deb3rgb(245, 222, 179)
white#ffffffrgb(255, 255, 255)
whitesmoke#f5f5f5rgb(245, 245, 245)
yellow#ffff00rgb(255, 255, 0)
yellowgreen#9acd32rgb(154, 205, 50)

148 rows — scroll inside the table, or download the CSV.

Colours

Processed on your device — nothing is uploaded.

How to use the CSS colour names table

  1. Type in Filter: part of a name (slate, blue, rebecca) or a full hex code (#ffd700). Matching is case-insensitive.
  2. Scan the table of Name, Hex and RGB. The swatches below it show the matching colours.
  3. Copy the value you need, or save the filtered list as css-colors.csv.

What it does and when to use it

Named colours are handy for quick prototypes, demos, debugging outlines (outline: 2px solid red) and teaching. They are also common in older stylesheets and SVG files, where you may need the exact hex value before you change a colour. Going the other way, a hex search tells you whether a value you found in a design has a keyword name.

Apart from the grey spellings, two pairs share a value: aqua and cyan are both #00ffff, and fuchsia and magenta are both #ff00ff. rebeccapurple (#663399) is the only name added in CSS Color Level 4.

To convert a value to HSL or other formats, use the colour converter. To check that text in a named colour is readable on its background, use the colour contrast checker. For the nearest name to any colour, not just exact matches, try colour name finder.

How it works

The list of 148 names and hex codes ships with the tool. The rgb() column is computed from the hex: each pair of hex digits is read as a number from 0 to 255. The filter splits your text on spaces and keeps rows where every word appears in the name, hex or rgb() text. It all runs in your browser, with no network calls.

Worked examples

Filter rebecca:

Showing: 1 of 148 colours
rebeccapurple | #663399 | rgb(102, 51, 153)

Filter #ffd700 finds the name for a hex code:

gold | #ffd700 | rgb(255, 215, 0)

Filter slate returns Showing: 9 of 148 colours: the slate blues and both spellings of the slate greys, from darkslategray (#2f4f4f) to lightslategray (#778899).

Limits and tips

  • Names are not a design system. They were fixed decades ago and are not evenly spaced in lightness or hue. Use them for quick work, and use your own tokens in production.
  • Searching part of an rgb() value is loose. Words are matched separately, so rgb(255, 0 also matches every row that contains a 0 anywhere. Search by hex instead.
  • No alpha. Every named colour is fully opaque. Add transparency with a value like rgb(255 215 0 / 50%).

Frequently asked questions

Are CSS colour names case-sensitive?
No. CSS keywords ignore case, so Gold, GOLD and gold are the same colour. The table lists them in lowercase, which is the usual style.
Why are there both gray and grey?
CSS accepts both spellings for every grey shade, such as darkgray and darkgrey, lightslategray and lightslategrey. Each pair has the same hex value. Search "gray" or "grey" to see seven of each.
Is darkgray darker than gray?
No, and this surprises many people. darkgray is
Why is my hex code not found?
The search compares text, so it needs the full six-digit hex as written in the table (case does not matter). Short forms like
Are transparent and currentcolor included?
No. They are special keywords, not named colours with a fixed value, so the list has only the 148 colours that map to one hex code.

Sources

  1. CSS Color Module Level 4 — Named colors — W3C, accessed 2026-10-02

Written by the ToolsRift team · Last updated

Pages are drafted with AI assistance and checked by automated tests. How we write and check pages.

Was this tool useful?

Report a problem

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close