With the randomcolor command, you can generate a random hex code. Dyno will also give you a preview of what the color looks like.
randomcolor
Cooldown: 3 seconds
Example
/randomcolor
Aliases: randcolor, randomcolour
e.g. @Dyno randomcolor