Random Color Generator
How This Converter Works
Generates a random color by choosing six hexadecimal characters with Math.random and prefixing them with #.
Formula or rule
Color = # + six selections from ABCDEF0123456789, each at floor(Math.random() * 16).
Example
- Input
- Generate a color
- Calculation
- One possible sequence of six random hexadecimal characters is A1B2C3.
- Result
- #A1B2C3 (one possible result)