Colors
Random Color Swatch Generator
Used by developers, writers, and creators worldwide.
A random color swatch generator solves the blank-palette problem fast. Set a count — anywhere from a handful to 20-plus — choose a mode (Any, Vibrant, Muted, Dark, or Light), and get a full batch of colors, each with hex, RGB, and HSL values ready to copy. No converter needed. Designers use it to surface starting points they wouldn't have reached deliberately: a vibrant run might expose an unexpected accent color, while a muted batch can reveal an entire neutral palette for editorial layouts. Developers reach for it to seed component libraries, populate test fixtures, or stress-test theme engines with values they haven't hardcoded themselves.
Loading usage…
Free forever — no account required
How to use
- Choose your options above
- Click Generate
- Copy your result
Detailed instructions
- Set the Number of Colors input to how many swatches your project needs (start with 6 for a palette, higher for data sets).
- Choose a Color Mode — Any for full randomness, or Vibrant, Muted, Dark, or Light to match your project's tone.
- Click Generate to produce the batch of swatches, each displayed with its hex, RGB, and HSL values.
- Click the copy icon next to any format to send that specific color code straight to your clipboard.
- Regenerate as many times as needed — results change every time, so keep clicking until a swatch set resonates.
Use Cases
- •Seeding a Figma file with 12 placeholder color styles before a brand sprint
- •Stress-testing a dynamic CSS theming system with 30 random hex values
- •Generating muted background swatches for avatar placeholders in a React user list
- •Prototyping a D3.js chart with distinct colors assigned to 8 data categories
- •Exploring a dark-mode palette by generating 10 low-lightness swatches and checking WCAG contrast ratios
Tips
- →Generate a batch of 20 in Muted mode, then cherry-pick 4–5 that share a similar lightness level for a cohesive neutral palette.
- →Dark mode swatches pair well with vibrant accents — generate both separately and mix one vibrant color into a dark set for contrast.
- →If you need a monochromatic feel, generate in Any mode and filter for swatches whose HSL hue values fall within 30° of each other.
- →For data visualization, generate at least twice as many colors as you need, then discard any that look too similar to each other in the output.
- →Paste hex codes directly into browser DevTools color picker to preview them in context before committing to your stylesheet.
- →Light mode is useful for generating pastel-range colors without the randomness of full Any mode overshooting into near-white values.
FAQ
how to get hex and RGB for the same color without a separate converter
Every swatch this generator produces includes hex, RGB, and HSL in a single output — no conversion step needed. Just copy whichever format your environment expects: hex for CSS custom properties, RGB triplets for React Native or design tokens, HSL when you need to adjust lightness programmatically.
what's the difference between vibrant and muted color modes
Vibrant mode targets high saturation (roughly 75–100%) with mid-range lightness, so colors look bold and punchy. Muted mode caps saturation around 15–40%, producing softer, desaturated tones that suit backgrounds, editorial layouts, and understated UI components.
are randomly generated color values free to use in commercial projects
Yes. Color values — hex codes, RGB triplets, HSL strings — are not copyrightable. Anything this tool generates is free to use in client work, open-source code, or published designs without restriction.