$isValidHex

Checks if given color hex is valid.

🧙‍♂️ 'true' means the color hex is valid, 'false' means it isn't.

Usage

$isValidHex[colorHex]

Breakdown