Skip to content
UniKit

Random color generator

Batch-generate reproducible random colors with a seeded mulberry32 PRNG (same seed, same colors, seed echoed back). Restrict hue / saturation / lightness ranges, pick HEX / RGB / HSL output, deduplicate, or generate harmony groups (complementary, analogous, triadic, tetradic, split complementary) with each color’s base and hue offset.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Options

Randomness comes from a seeded mulberry32 PRNG: the same seed always yields the same colors, and the seed used is echoed back.

Sampling ranges

A harmony scheme rotates the base hue by fixed angles, so the resulting hues can fall outside this range.

0°
360°
55%
95%
45%
70%
Other options

Generated colors

Each swatch lists HEX / RGB / HSL plus the base color it came from and its hue offset.

Colors: 5 · Unique: 5 · Redraws: 0 · Seed: 20240101

  • #43DADF
    rgb: 67, 218, 223hsl: 181.7, 70.7%, 56.7%Base #1 · Hue offset 0°
  • #E4808F
    rgb: 228, 128, 143hsl: 351.1, 64.5%, 69.7%Base #2 · Hue offset 0°
  • #E73971
    rgb: 231, 57, 113hsl: 340.8, 78.6%, 56.6%Base #3 · Hue offset 0°
  • #DBB181
    rgb: 219, 177, 129hsl: 31.8, 55.8%, 68.3%Base #4 · Hue offset 0°
  • #CE57CD
    rgb: 206, 87, 205hsl: 300.9, 55.1%, 57.5%Base #5 · Hue offset 0°
Plain text result
#43DADF
#E4808F
#E73971
#DBB181
#CE57CD

What this tool does

  • Find a set of colors that look distinct for a mockup, a chart or test data, then copy the values straight into code.
  • Reproducible randomness: the same seed always produces the same colors, which makes snapshot tests and bug reports easy.
  • Generate by harmony scheme — complementary, analogous, triadic, tetradic, split complementary — with the base color and hue offset of every swatch labelled, ready for a theme.

Example

Input

count=5, seed=20240101, scheme=triadic

Output

#43DADF
#DF43DA
#DADF43
#E4808F
#8FE480

With the default ranges the first base hue is 181.7°, and the triadic scheme adds 301.7° and 61.7°; a fixed seed reproduces this exactly.

Frequently asked questions

Where does the randomness come from — will it change if I come back later?

From a seeded mulberry32 PRNG whose seed you provide (default 20240101). Neither the system clock nor the browser random source is read, so the same options always produce the same colors, and the seed actually used is echoed back in the result.

Are the colors uniformly distributed over RGB?

No. Colors are sampled uniformly in HSL space inside the hue / saturation / lightness ranges you set, then converted to sRGB with the CSS Color 4 formulas. Equal probability per hex value would need rejection sampling, which this tool does not do.

Why do some colors fall outside the hue range I set when a scheme is selected?

A harmony scheme rotates the base hue by fixed angles: 180° for complementary, ±30° for analogous, 120°/240° for triadic, 90°/180°/270° for tetradic and 150°/210° for split complementary. The rotated hues can leave your hue range; saturation and lightness still come from the base color.

How does deduplication work?

It is on by default: a color that already appeared is redrawn, up to 50 attempts per color. When the ranges leave almost no room (for example saturation and lightness both pinned to 0) duplicates are allowed, and the number of redraws is reported in the summary.

What does this tool deliberately not do?

It does not check accessibility contrast (there is a separate contrast checker), does not do ICC color management or gamut mapping, does not render gradients or images, and never fetches palette data from the network.

Keywords:random color generatorcomplementary colorstriadic palettemulberry32

Related tools