Random hex colour generator
Nearest named colour: lime
Calculated in your browser · nothing is uploaded
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
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.
16,777,216; 256 values in each of three channels.
Hex for anything going into a design tool, HSL when you want to adjust lightness by hand, and OKLCH when you need two colours to look equally light; it is the only one of the four where that number means what you expect.
Not necessarily. A palette generator arranges hues; it says nothing about contrast. Check any text-on-background pair against the contrast checker before shipping it.
Each press is independent, so repeats are possible but vanishingly unlikely.