Random Color Generator
Generate random colours with hex and RGB codes, in any, pastel, vivid or dark styles.
About the Random Color Generator
Choose how many colours and a style (any, pastel, vivid or dark). The generator gives each colour as a hex code with a swatch you can copy.
Any colour on screen is a mix of red, green and blue, each from 0 to 255, giving 16,777,216 colours. Hex codes write those three numbers in base 16 (#FF8800). Pastel, vivid and dark styles pick a random hue and then keep saturation and lightness in a range that gives that look.
The formula
Hex = #RRGGBB with each channel 00–FF; 16⁶ = 16,777,216 colours
Worked example
Five random colours in any style
- Each channel R, G, B from 0 to 255
- Shown as hex codes like #294CF7; run again for new ones
Questions people ask
How do I use a hex code?
Paste it into CSS, Canva, Figma or any colour picker.
Are the colours truly random?
Yes, from the browser's cryptographic random generator.