If the hard hat is for personal use, you can wear whatever color you prefer. In professional environments, colors are often used to define particular roles (see above for more info).