How do I get hex value for field categoryhex on creating category?
That hexadecimal value of the color. You can get the hex value of the color from here - http://www.w3schools.com/html/html_colornames.asp
http://www.color-hex.com/color-names.html