RT Random Tools

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 uploaded

Tip: a hue min larger than the max wraps around the color wheel (330 to 30 gives reds and pinks).

Click a color to copy it. Lock the ones you like, then re-roll the rest.

Was this tool useful? Rate it:

Random 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

  1. Set the count and formatChoose how many colors you want, from 1 to 50, and whether to show HEX, RGB or HSL values.
  2. Pick a preset or limitsUse the Pastel, Dark or Vivid preset, or set your own hue, saturation and lightness ranges.
  3. Lock and re-rollPress Generate, lock the colors you like, then re-roll to replace only the unlocked ones.
  4. Copy or exportClick any color to copy it, or download the whole palette as text, JSON, CSS variables or a PNG.

Frequently asked questions

What do the hue, saturation and lightness limits do?
Each new color is picked at random inside the ranges you set. Hue is the position on the color wheel from 0 to 360, saturation is how intense the color is and lightness is how close it is to black or white.
Can the hue range wrap around?
Yes. If the minimum is larger than the maximum, the range wraps past 360, so 330 to 30 gives reds and pinks.
How do I keep colors I like?
Press Lock under a color. Locked colors stay put when you generate again, and only the others are replaced.
Which export formats are available?
You can copy all values, or download a plain text list, a JSON array, a CSS file with custom properties, or a PNG image of the swatches.
Is anything uploaded?
No. Colors are generated and exported entirely in your browser.