Generate a random color with its hex code, for design inspiration, building a palette, or picking an accent color on the spot.
This generator produces a random color swatch with its hex code, filterable by eight color families -- Reds, Oranges, Yellows, Greens, Blues, Purples, Pinks, and Grays -- computed on the fly rather than drawn from a fixed list of preset colors.
Every result here is drawn using crypto.getRandomValues() -- the Web Crypto API's cryptographically secure randomness -- instead of Math.random(), so it's genuinely unpredictable, not just statistically random. Learn more.
Designers use it for palette inspiration or to break a creative rut when every idea is starting to look the same. It's also useful for picking an accent color on the spot, a random theme color for a project, or just discovering a hex value you'd never have picked yourself.
Generate computes a random color using the site's cryptographically secure randomness to pick hue, saturation, and lightness values, guaranteed not to repeat whatever result is currently showing in single-result mode. Filtering by family constrains the hue to that family's range before the color is computed; Grays constrains saturation instead, since gray has no meaningful hue.
A sample of what this generator can draw, spread evenly across the full list:
No -- each color is computed from random hue, saturation, and lightness values, so the space of possible results is effectively continuous, not a fixed palette.
Yes -- use the filter button to pick one or more of the eight families. Generate will then only produce colors within those families' hue ranges.
Not in single-result mode -- each new roll is guaranteed to differ from the one currently on screen.
Yes -- every swatch is shown alongside its hex code, ready to copy.