awk (or) UNIX random RGB colors generator?

Dear UNIX Friends,

I was wondering if there is a random RGB color generator or any function in any unix platforms.

Please share your ideas.

Thanks

$ printf "%02x%02x%02x\n" $((RANDOM%256)) $((RANDOM%256)) $((RANDOM%256))
2ae9ae

$
2 Likes

Add a fourth one and have the Alpha channel too.
CMYK is in there too.