Sign In

$randomColor

Generates a random color in the specified format (hex by default).

v1.0.0+ Optional Brackets

Usage

$randomColor[]

Arguments

NameTypeRequiredDescription
output format
NoThe desired output format: hex, rgb, rgba, hsl, int, or cmyk.

Output

String

Was this page helpful?