HTML Color Names

All 148 CSS color names with HEX and RGB codes, searchable, sortable and one click to copy.

HTML Color Names tool

148 colors

rgb(240, 248, 255)
rgb(250, 235, 215)
rgb(0, 255, 255)
rgb(127, 255, 212)
rgb(240, 255, 255)
rgb(245, 245, 220)
rgb(255, 228, 196)
rgb(0, 0, 0)
rgb(255, 235, 205)
rgb(0, 0, 255)
rgb(138, 43, 226)
rgb(165, 42, 42)
rgb(222, 184, 135)
rgb(95, 158, 160)
rgb(127, 255, 0)
rgb(210, 105, 30)
rgb(255, 127, 80)
rgb(100, 149, 237)
rgb(255, 248, 220)
rgb(220, 20, 60)
rgb(0, 255, 255)
rgb(0, 0, 139)
rgb(0, 139, 139)
rgb(184, 134, 11)
rgb(169, 169, 169)
rgb(0, 100, 0)
rgb(169, 169, 169)
rgb(189, 183, 107)
rgb(139, 0, 139)
rgb(85, 107, 47)
rgb(255, 140, 0)
rgb(153, 50, 204)
rgb(139, 0, 0)
rgb(233, 150, 122)
rgb(143, 188, 143)
rgb(72, 61, 139)
rgb(47, 79, 79)
rgb(47, 79, 79)
rgb(0, 206, 209)
rgb(148, 0, 211)
rgb(255, 20, 147)
rgb(0, 191, 255)
rgb(105, 105, 105)
rgb(105, 105, 105)
rgb(30, 144, 255)
rgb(178, 34, 34)
rgb(255, 250, 240)
rgb(34, 139, 34)
rgb(255, 0, 255)
rgb(220, 220, 220)
rgb(248, 248, 255)
rgb(255, 215, 0)
rgb(218, 165, 32)
rgb(128, 128, 128)
rgb(0, 128, 0)
rgb(173, 255, 47)
rgb(128, 128, 128)
rgb(240, 255, 240)
rgb(255, 105, 180)
rgb(205, 92, 92)
rgb(75, 0, 130)
rgb(255, 255, 240)
rgb(240, 230, 140)
rgb(230, 230, 250)
rgb(255, 240, 245)
rgb(124, 252, 0)
rgb(255, 250, 205)
rgb(173, 216, 230)
rgb(240, 128, 128)
rgb(224, 255, 255)
rgb(250, 250, 210)
rgb(211, 211, 211)
rgb(144, 238, 144)
rgb(211, 211, 211)
rgb(255, 182, 193)
rgb(255, 160, 122)
rgb(32, 178, 170)
rgb(135, 206, 250)
rgb(119, 136, 153)
rgb(119, 136, 153)
rgb(176, 196, 222)
rgb(255, 255, 224)
rgb(0, 255, 0)
rgb(50, 205, 50)
rgb(250, 240, 230)
rgb(255, 0, 255)
rgb(128, 0, 0)
rgb(102, 205, 170)
rgb(0, 0, 205)
rgb(186, 85, 211)
rgb(147, 112, 219)
rgb(60, 179, 113)
rgb(123, 104, 238)
rgb(0, 250, 154)
rgb(72, 209, 204)
rgb(199, 21, 133)
rgb(25, 25, 112)
rgb(245, 255, 250)
rgb(255, 228, 225)
rgb(255, 228, 181)
rgb(255, 222, 173)
rgb(0, 0, 128)
rgb(253, 245, 230)
rgb(128, 128, 0)
rgb(107, 142, 35)
rgb(255, 165, 0)
rgb(255, 69, 0)
rgb(218, 112, 214)
rgb(238, 232, 170)
rgb(152, 251, 152)
rgb(175, 238, 238)
rgb(219, 112, 147)
rgb(255, 239, 213)
rgb(255, 218, 185)
rgb(205, 133, 63)
rgb(255, 192, 203)
rgb(221, 160, 221)
rgb(176, 224, 230)
rgb(128, 0, 128)
rgb(102, 51, 153)
rgb(255, 0, 0)
rgb(188, 143, 143)
rgb(65, 105, 225)
rgb(139, 69, 19)
rgb(250, 128, 114)
rgb(244, 164, 96)
rgb(46, 139, 87)
rgb(255, 245, 238)
rgb(160, 82, 45)
rgb(192, 192, 192)
rgb(135, 206, 235)
rgb(106, 90, 205)
rgb(112, 128, 144)
rgb(112, 128, 144)
rgb(255, 250, 250)
rgb(0, 255, 127)
rgb(70, 130, 180)
rgb(210, 180, 140)
rgb(0, 128, 128)
rgb(216, 191, 216)
rgb(255, 99, 71)
rgb(64, 224, 208)
rgb(238, 130, 238)
rgb(245, 222, 179)
rgb(255, 255, 255)
rgb(245, 245, 245)
rgb(255, 255, 0)
rgb(154, 205, 50)

About the HTML Color Names

Named colors such as tomato, teal and slategray work in every browser and are handy for prototypes, teaching and quick styling. This reference lists all 148 color names that HTML and CSS understand, from aliceblue to yellowgreen, each with a swatch, its HEX code and its RGB values. Search by name or code, filter by color family, sort by hue and click any color to copy it. Named colors are fixed values, so for brand colors, use exact HEX codes instead.

Search by name or by HEX code to find a color, filter the list by color family, such as reds, blues or grays, and sort it alphabetically, by hue to see the colors as a rainbow, or by lightness. Click a swatch or a HEX code to copy the code, or click the name to copy the keyword itself. The count shows how many colors match your search.

The names come from the original sixteen HTML colors, the X11 color set adopted by early browsers, and rebeccapurple, added in honor of Rebecca Meyer. Some names are aliases with the same value, such as aqua and cyan, fuchsia and magenta, and the gray and grey spellings, which is why there are 148 names but only 140 distinct colors.

To convert a named color to other formats, use the color converter. To check readability against a background, try the color contrast checker, and to build a palette from scratch, the color palette generator.

How to use the HTML Color Names

  1. Browse or searchScroll the list, or type a name or HEX code into the search box.
  2. Filter and sortPick a color family, and sort by name, hue or lightness.
  3. Copy a codeClick a swatch or HEX code to copy it, or the name to copy the keyword.
  4. Use it in CSSPaste the name or code into your stylesheet, for example color: tomato;

HTML Color Names features

  • All 148 CSS named colors
  • HEX and RGB codes for each
  • Search by name or HEX
  • Filter by color family
  • Sort by name, hue or lightness
  • Click to copy name or code
  • Alias colors included
  • Works offline

Common uses

  • Choosing quick colors for prototypes and demos
  • Finding the code of a named color
  • Writing readable CSS for teaching
  • Coloring SVG icons and charts
  • Checking what a named color really looks like

Colour names in practice: fast prototypes, the green and lime surprise, currentColor for icons, system colours for high contrast and readable names

By the FreeToolsWorld editorial team · Updated November 2026 · How we write and check our guides

CSS colour names, such as tomato and steelblue, are friendly for learning and quick prototypes, and a few keywords are genuinely powerful in production code. This guide shows how to prototype with names and replace them later, explains some surprising name values, and covers currentColor for icons, system colours for high contrast mode and the limits of names for brands.

A worked example: a quick prototype

A student building a first website uses names while experimenting: tomato for buttons, seagreen for headings and steelblue for links. Their values are #FF6347, #2E8B57 and #4682B4. Once the layout works, the student replaces each name with the brand's HEX codes stored as custom properties, so the final site has consistent, deliberate colours rather than whatever names happened to look nice.

Green is not lime

In CSS, green is the dark #008000, while the bright pure green #00FF00 is called lime. Beginners who expect a vivid green from the word green are often surprised. Several other names behave unexpectedly too, such as darkgray being lighter than gray, a legacy of the names' different origins.

Both spellings work

CSS accepts grey as well as gray in every name that contains it, so lightgrey and lightgray are the same colour. Writers who prefer British spelling can use grey freely. Choose one spelling for a project and use it consistently to keep stylesheets tidy.

currentColor for icons

The keyword currentColor uses the element's current text colour. Setting an SVG icon's fill to currentColor makes it automatically match the text around it, including hover colours and dark mode. It is one of the most useful colour keywords in modern interfaces, though it is a keyword rather than a fixed named colour.

System colours for high contrast

CSS also defines system colour keywords, such as Canvas, CanvasText, LinkText and ButtonText, which follow the user's chosen colours in forced colours modes, like Windows high contrast. Using them inside a forced-colors media query lets custom components, such as toggles and charts, remain visible for people who rely on these modes.

Names and readability

Some names are poor choices for text: yellow on white has a contrast ratio of only about 1.07 to 1, effectively invisible. Names describe colours, not their suitability, so check any named colour with a contrast checker before using it for text or important icons.

Names in other places

The same names work in SVG files, in canvas drawing code and in many charting libraries, which makes them handy for quick diagrams. Design tools and print software usually expect numeric values instead, so convert names to HEX or RGB before passing colours to designers or printers.

Teaching with names

Names make colour approachable for children and beginners learning HTML and CSS, because changing color to orchid or gold gives instant, memorable results. Once comfortable, learners can move to HEX and HSL to choose colours precisely.

Common mistakes

  • Expecting green to be bright green.
  • Shipping prototype names instead of brand colours.
  • Using pale named colours for text.
  • Hard-coding icon colours instead of using currentColor.

Related tools

To pick and adjust exact colours, use Color Picker. To convert a name's HEX value to RGB, try HEX to RGB Converter, and for inspiration beyond the named set, Random Color Generator.

Where the names came from

Most CSS colour names come from a list used by the X Window System on Unix computers, which browsers adopted in the 1990s. The list was assembled from various sources without a consistent plan, which explains its quirks, such as the mismatch between gray and darkgray.

Debugging layouts

Named colours are quick to type when debugging, for example adding an outline in red or magenta to see exactly where an element's edges fall. Because these debugging colours are obviously temporary, they are easy to find and remove before changes are committed.

Colour names for shoppers

CSS names such as lightgoldenrodyellow are not meant for customers. Online shops should give product colours their own clear names in the languages their customers use, such as English and Urdu, and keep CSS names for code only. Clear colour names in filters help shoppers find what they want.

Consistency in a team

Mixing names and HEX codes for the same colour across a stylesheet makes it hard to search and update. Agree on one approach, usually HEX or custom properties for anything lasting, and reserve names for experiments, demos and debugging.

Exploring by family

Browsing the names grouped by colour family, such as all the reds or all the blues, is a quick way to explore nearby options when sketching an idea. Once a candidate is chosen, its exact HEX value can be adjusted to fit a palette precisely.

Accessibility of named colours

Several popular names, such as yellow, aqua and lime, are very light and fail contrast on white backgrounds, while others, such as navy and maroon, work well for text. Checking a name with a contrast checker before using it for anything readable avoids the most common beginner mistake with named colours.

Privacy

The list and search run in your browser. Nothing is uploaded or stored.

Frequently asked questions

How many HTML color names are there?

CSS defines 148 color names, which cover 140 distinct colors because some are aliases, such as aqua and cyan or the gray and grey spellings. All current browsers support every one of them.

Are color names case-sensitive?

No. CSS color keywords are case-insensitive, so Tomato, TOMATO and tomato all work. The lowercase form is the conventional way to write them and is the form shown in this list.

Should I use names or HEX codes?

Both produce identical colors. Names are easier to read and remember, which helps in demos and prototypes, while HEX and other codes give you the full range of millions of colors that brand designs need.

What is rebeccapurple?

A color, #663399, added to CSS in 2014 in memory of Rebecca Meyer, the daughter of web standards pioneer Eric Meyer. It is the only named color added since the original X11 set.

Why is darkgray lighter than gray?

It is a historical quirk. The X11 names were defined separately from the original HTML gray, so darkgray (#A9A9A9) ended up lighter than gray (#808080). Check the codes rather than trusting the names.

Can I use color names in HTML attributes?

Yes. Old attributes such as bgcolor and color accept names, and so do SVG fill and stroke attributes, but modern pages should set colors with CSS rather than presentational HTML attributes.

Is transparent a color name?

transparent is a CSS keyword for a fully transparent color and currentcolor refers to the element's text color. They are special keywords rather than named colors, so they are not part of the 148.

Can I use these names in design tools?

Most design tools, such as Figma or Photoshop, expect HEX or RGB codes rather than CSS names. Copy the HEX code from the card instead; it gives exactly the same color as the name does in a browser.