TOOLTIKI Lovable tool, really free
Colour Palettes

Random hex colour generator

Nearest named colour: midnightblue

Format

Calculated in your browser · nothing is uploaded

Local · constrained bands, on purpose
Advertisement
320 × 100

Generates random hex codes from your browser’s cryptographic source, held in a usable saturation and lightness band rather than drawn uniformly from the RGB cube.

How to use the random hex colour generator

1 Press generate for a fresh set, and again until one lands.
2 Switch the format if you need RGB, HSL or OKLCH rather than hex.
3 Tap any swatch to copy it, or copy the whole set at once.

Uniform random RGB sounds like the obvious implementation and produces a disappointing result: most of the RGB cube is low-saturation, so a truly uniform draw returns muddy near-greys far more often than anything you would use. Constraining the bands is what makes the output useful. If you specifically need uniform random RGB — for test fixtures, or to demonstrate that point — this is not doing that, and it is worth knowing which one you have.

Questions

No, deliberately. A uniform draw returns mostly muddy greys. The bands are constrained to keep the output usable.

MDN — CSS color values
Advertisement
300 × 250
Was this tool any good?
INTERNAL SIGNAL ONLY · WE USE IT TO FIND TOOLS WORTH REBUILDING