Get Random Hex Color
Generate a random hexadecimal color.
Category | Random |
Author | Pol Gubau |
Since | 1.0.0 |
Last Updated | 2025-03-17 |
Type | Sync |
Compatibility | Browser |
Example
Input
getRandomHexColor()
Output:
"#a3f4b2"
Return
A random hex color string.
Type: string
Notes
Generated colors are always 6-digit hex codes.
Tags
- random
- color
- hex