HTML Color Names: All 148 CSS Colors with HEX & RGB
Browse all 148 HTML/CSS color names with HEX, RGB and HSL codes. Filter by family, sort by hue, copy any code and find the closest named color to a hex.
Updated November 2026
Reviewed by Rafael Duarte
Lime vs Green
Pure valueIn CSS, lime is pure #00FF00 — green is actually the darker 50% shade #008000.
Aqua vs Cyan
IdenticalBoth aqua and cyan map to exactly #00FFFF. They are synonyms in every browser engine.
Gray vs Grey
AliasesCSS supports both spellings: 7 gray/grey synonym pairs contribute to the 148 total keywords.
141 colors found
Nearest Named Color Finder
Paste any hex code and find the closest official CSS named color, ranked by ΔE (CIELAB) color distance.
The story of RebeccaPurple #663399
In 2014, the web community came together to honor Rebecca Meyer, the six-year-old daughter of CSS pioneer Eric Meyer, who died of brain cancer on her birthday. At the community's suggestion, the shade of purple she loved was added to the CSS specification forever as rebeccapurple — the only CSS color named after a person.
How to use the HTML color names list
Search, filter, and find the closest named color
1. Type a name or a hex fragment
The grid filters live — search by keyword like tomato, or a partial hex like ff63.
2. Filter by family or sort
Pick "Blues" and sort by lightness to scan every blue from palest to darkest in one pass.
3. Copy it, or find the nearest match
Click a swatch to copy its HEX. To get a color name from a hex code, paste it into the finder: it returns the exact keyword or the closest official one.
What this CSS color names tool does
All 148 CSS color names with their HEX codes, actually searchable
Nearest named color finder
Paste any hex and get the closest official CSS keyword, ranked by ΔE (CIELAB) perceptual distance.
Filter by color family
Every blue, every green, grouped the way a designer actually browses colors — not an alphabetical wall of text.
Sort by hue, lightness, or saturation
Not just A-to-Z — sweep an entire family in a real visual progression instead.
Ready-to-paste CSS snippets
Every color's detail view includes HEX, RGB, HSL, and a code block you can copy straight into a stylesheet.
Examples
When you'll reach for this
The scenarios that come up most for people using this tool
Prototypes and demos
background: cornflowerblue is faster to type and easier to read at a glance than a hex code.
Naming a brand color semantically
Paste your hex into the finder to see if a CSS keyword is close enough for quick mockups and comps.
Picking a shade within one family
Filter to "Greens" and sort by lightness instead of hunting through an alphabetical table.
Teaching and documentation
Names like tomato and papayawhip are far more memorable than hex codes when explaining CSS to beginners.
Common mistakes with CSS color keywords
Using green and expecting pure green
green is #008000, half brightness. The fully saturated green keyword is lime.
Thinking grey is invalid
grey is a valid keyword just like gray, and both spellings also work in compounds such as darkgrey. The real mistake is mixing the two across one project.
Assuming there are 140 named colors
The spec defines 148 keywords. Validation built against an older count rejects perfectly valid names.
Why use this tool
Unlike a static reference table, you filter by color family and sort by hue, lightness, or saturation — the way a designer actually browses color, not alphabetical order.
The nearest-color finder uses ΔE perceptual distance in CIELAB space, which models how humans actually perceive color differences far better than raw RGB distance does.
lime vs. green
The most common mix-up in CSS color names
Frequently asked questions
Exactly 148 keywords — 141 unique names plus 7 aliases using the British spelling "grey". The original 16 basics come from HTML 4.01, most of the rest from X11/SVG, and rebeccapurple was added in 2014. Lists that say "140 colors" are out of date: they leave out rebeccapurple and the "grey" aliases.
Paste the code into the nearest named color finder. If the hex belongs to a named color, such as #4682B4, it shows the exact name (SteelBlue) with an "Exact match!" badge. If not, it gives the closest CSS keyword plus a few other close matches.
rebeccapurple was added to the CSS spec in 2014 in memory of Rebecca Meyer, the six-year-old daughter of CSS pioneer Eric Meyer, who passed away on her birthday. It's the only CSS color named after a real person.
lime is fully saturated, maximum-brightness green (#00FF00). green is a darker, mid-brightness tone (#008000) at exactly half the brightness.
Both are valid: gray and grey are the same #808080, and the same goes for the six compound pairs such as darkgray/darkgrey and slategray/slategrey. Pick one spelling and use it consistently.
Paste the hex into the nearest-color finder above. It converts your color and all 148 keywords to CIELAB space, ranks them by ΔE distance, and returns the best match along with close alternatives.
Yes — all 148 keywords, including rebeccapurple, are part of the CSS Color Module and are supported by every current major browser (Chrome, Firefox, Safari, Edge).
References
Related Tools
- Color Contrast Checker: WCAG AA/AAA & Color Blindness Design Check if text and background pass WCAG 2.2 AA and AAA, get the nearest passing text color and preview 4 types of color blindness. Free, in your browser.
- HEX to RGB Converter with HSL & CMYK Values Design Paste a HEX code and copy its RGB, HSL and CMYK values instantly, with 4 harmony colors, a contrast check against white and CSS palette export.
- Color Scheme Generator: Complementary, Triadic & Analogous Design Pick a base color and get 5 harmonious colors: analogous, monochromatic, complementary, triadic or tetradic. Preview them on a site, export CSS or JSON.
- Color Palette from Image: Extract HEX, RGB & HSL Codes Design Upload a photo or logo and extract 3 to 12 dominant colors as HEX, RGB and HSL. Export CSS variables, Tailwind, JSON or PNG. Nothing leaves your browser.
- CSS Box Shadow Generator: Tailwind, Neumorphism & Glass Design Create CSS box shadows with a live preview and ready-made presets, or switch to neumorphism and glassmorphism. Copy as CSS, a Tailwind class or a variable.