I\'ve inspected the Java class documentation for Color and found that I can generate a Color object from a hex code string (e.g. \"#FFFFFF\") using the Co
(e.g. \"#FFFFFF\")
Co
Read this: Getting Html color codes with a JColorChooser
The answer has a method to convert a color to it's hex value.