How can I use hex value into enum?

In reply to yourcheers:

Also, instead of “$size”, you should use “Color.num()”, to iterate over the number of elements