Random Named Color Generator
Generates random colors with their official CSS color names and hex codes
- DarkSalmon — #E9967A
- Crimson — #DC143C
- Peru — #CD853F
- SeaGreen — #2E8B57
- DeepSkyBlue — #00BFFF
- MediumVioletRed — #C71585
Generated 6 items
See 3 examples
- Example 1
DarkSalmon — #E9967A Crimson — #DC143C Peru — #CD853F SeaGreen — #2E8B57 DeepSkyBlue — #00BFFF MediumVioletRed — #C71585
- Example 2
MediumTurquoise — #48D1CC GreenYellow — #ADFF2F Gold — #FFD700 MidnightBlue — #191970 RebeccaPurple — #663399 LightCoral — #F08080
- Example 3
DarkGoldenRod — #B8860B AliceBlue — #F0F8FF Peru — #CD853F GoldenRod — #DAA520 SteelBlue — #4682B4 SlateBlue — #6A5ACD
About this generator
This tool generates random CSS named colors with their hex codes, such as "Thistle — #D8BFD8" or "SeaGreen — #2E8B57." CSS ships with about 140 officially named colors most developers have never seen, and this tool surfaces 76 of them at random, each with its exact hex code. Set the count to anywhere from 1 to a full batch, and use the Color Family filter to stay within Reds, Blues, Greens, Yellows, Purples, or Neutrals. Designers use it to kick off moodboards without opening a color picker. Developers use it to write self-documenting CSS — background: MistyRose tells a reviewer far more than #FFE4E1. Hit refresh a few times and you will almost certainly find a color you have never typed before.
How to use
- Set the Number of Colors field to how many named swatches you want generated at once.
- Choose a Color Family from the dropdown to filter results to a specific hue range, or leave it on All.
- Click Generate to see your named colors displayed as swatches with their CSS name and hex code.
- Click any swatch or copy button to grab the hex code or color name for use in your project.
- Regenerate as many times as needed — each run pulls a new random selection from the filtered set.
Use Cases
- •Prototyping a React component with readable named colors like SteelBlue instead of placeholder hex strings
- •Generating a batch of Neutrals to seed CSS custom properties in a design token file
- •Teaching a front-end class the full W3C named color set with visual hex comparisons
- •Building a Figma moodboard confined to one color family using the filter before exporting swatches
- •Populating a Storybook color palette story with real CSS-valid named color values
Tips
- →Set count to 18 and Color Family to 'Blues' to see every blue in the generator's pool side by side.
- →When prototyping in CSS, named colors like MistyRose or SlateGray are faster to type and easier to remember than hex strings.
- →Pair a Neutrals result (browns and tans like Sienna, Peru, or MistyRose) with a vivid family result to find background-and-accent combinations fast.
- →Copy the color name rather than the hex when writing CSS — it keeps your stylesheet readable and self-documenting.
- →If a generated color name is unfamiliar, search it in MDN's CSS color reference to see its full browser compatibility history.
- →Use the 'All' filter for random inspiration, then switch to a specific family once you identify a hue direction worth exploring.
FAQ
can I use CSS named colors instead of hex codes in production stylesheets
Yes — all 140 named colors work in any CSS property that accepts a color value, including SVG fill, inline styles, and CSS custom properties. They are parsed natively by every modern browser with no performance penalty, and they make code reviews easier because MediumSeaGreen communicates intent in a way that #3CB371 does not.
are CSS color names case sensitive
No. Coral, coral, CORAL, and cOrAl all resolve to the same value (#FF7F50). Convention in documentation leans toward PascalCase, but lowercase is fine and consistent with the rest of your CSS property values.
how do I use a named color in JavaScript or canvas
Named color strings work anywhere a CSS color is accepted — React inline styles (style={{ backgroundColor: 'SteelBlue' }}), canvas fillStyle, and SVG attributes all parse them correctly. Libraries like Chroma.js and the browser-native CSS.supports() API also accept named color strings and can convert them to hex or RGB on the fly.
Can I use CSS named colors instead of hex in production?
Yes — the roughly 140 standard CSS named colors (like khaki, olivedrab, tomato) are valid in any stylesheet and render identically to their hex equivalents, so color: khaki works in production. Named colors are readable but limited to that fixed set; use hex, RGB, or HSL when you need a shade outside the named palette.
How many CSS named colors are there?
CSS defines about 140 named colors, or 148 keywords once alternate spellings like gray and grey are counted. This generator draws from a 76-color selection of them, so check MDN or the CSS Color specification for the complete list.
You might also like
Popular tools from other categories that share themes with this one.