Random Color Generator
Generate random colors and palettes in HEX, RGB or HSL with hue limits, pastel, dark and vivid presets, locking and export.
π Runs entirely in your browser β nothing is uploadedRandom colors with control over the result
A purely random color is often muddy or garish, which is why this generator lets you steer the randomness. Every color is chosen in the HSL model: a hue from 0 to 360 degrees, a saturation percentage and a lightness percentage. By limiting each of those three ranges you can ask for anything from soft pastels to deep, dark shades to punchy, vivid tones, and still get a different result every time you press Generate.
The presets are starting points. Pastel uses moderate to high saturation with high lightness, Dark keeps lightness low, and Vivid pushes saturation high with mid lightness. Edit any field afterwards and the preset switches to Custom. To stay inside one family of colors, narrow the hue range: roughly 90 to 150 gives greens, and a range that wraps, such as 330 to 30, gives reds and pinks.
Lock, re-roll and build a palette
Generate up to fifty colors at once, then use the lock button on the ones you want to keep. When you re-roll, locked colors stay in place and only the rest are replaced. This makes it easy to grow a palette step by step: find a base color you love, lock it, and keep rolling until the companions work. Each swatch picks black or white text automatically using relative luminance, so the value stays readable on every background.
Copy and export your palette
Click any swatch to copy its value in the format you selected: HEX such as #3B82F6, RGB such as rgb(59, 130, 246) or HSL such as hsl(217, 91%, 60%). To take the whole set with you, copy all values at once or download them as a text list, a JSON array, a CSS file of custom properties like --color-1 or a PNG strip of swatches. The random values come from the browser's secure random generator, and nothing you create leaves your device, so the tool is handy for design mockups, game art, charts, placeholder themes and creative prompts.
How to use
- Set the count and formatChoose how many colors you want, from 1 to 50, and whether to show HEX, RGB or HSL values.
- Pick a preset or limitsUse the Pastel, Dark or Vivid preset, or set your own hue, saturation and lightness ranges.
- Lock and re-rollPress Generate, lock the colors you like, then re-roll to replace only the unlocked ones.
- Copy or exportClick any color to copy it, or download the whole palette as text, JSON, CSS variables or a PNG.