Random Color Generator
Generate random colors from the full color wheel or from curated palettes like pastels, neons, primary colors and more. Pick 1 to 20 colors at once.
How many colors
Palette mode
Common Use Cases
About Random Color Generator
Random color generation is one of the most common micro-tasks in design and front-end development. Designers reach for a random color when they need a quick placeholder swatch for a wireframe, a starting point for an accent palette, or a burst of visual variety in a generative art piece. Developers use random colors to assign distinct hues to chart series, tag categories, avatar backgrounds, or debug bounding boxes. In creative coding frameworks like p5.js and Processing, randomising color is often the very first experiment a learner tries.
Most "random color" generators on the web produce a single fully random hex code, but fully random means a high chance of muddy browns, dull greys, and clashing tones. Constraining randomness to a curated palette mode produces far more usable results. Pastel mode restricts output to high-lightness, low-saturation hues that feel soft and approachable, ideal for backgrounds, cards, and light UI surfaces. Neon mode pushes saturation to the maximum for eye-catching accents. Dark mode keeps lightness low for deep, rich tones suited to dark-themed interfaces. Primary and secondary modes limit hues to the classic color-theory primaries (red, blue, yellow) or the six-color wheel (adding green, orange, purple), which is useful for children's apps, educational materials, and bold graphic design.
Warm and cool modes filter the hue wheel into its emotional halves: warm colors (reds, oranges, yellows) feel energetic and inviting, while cool colors (blues, greens, purples) feel calm and professional. Grayscale mode strips hue entirely, producing a spectrum from near-black to near-white, useful for neutral UI palettes, typography, and monochrome design.
This tool generates 1 to 20 colors at once, displays each as a large swatch with its HEX, RGB, and HSL values, and lets you lock individual colors so they survive when you regenerate the rest. One-click copy for individual swatches, bulk copy as comma-separated HEX, or export as CSS custom properties makes it effortless to move your colors into code. All generation uses Math.random() and HSL arithmetic, with no external libraries, no server calls, and no data leaving your browser.
Frequently Asked Questions
How does the palette mode affect which colors are generated?
What does locking a color do?
Is the randomness truly uniform?
Can I copy all colors at once?
Is any data sent to a server?
Related Tools
View all GeneratorsInvoice Generator
Create professional invoices with your company details, custom line items, tax, and totals, then download a ready-to-send PDF, entirely in your browser.
ULID Generator
Generate random, lexicographically sortable ULIDs, a modern alternative to UUIDs that sort by creation time. Batch generate and decode existing ULIDs, entirely in your browser.
UUID Generator
Generate random UUIDs (v4) or timestamp-ordered UUIDs (v7) in bulk. Customize case and hyphens, and decode an existing UUID's version and embedded timestamp.