No.
Color.BLACK
is one of a large range of colors, and maps to RGB values of 0, 0, 0.
If you were to have an RGB of 0, 0, 1 - almost black, with just a little blue - what color would that be? How about off-green? Or yellow with just a little extra red?
That's why there's no way to convert a raw color back to a string again; because there are far more colors which are represented by the different RGB values than just the ones which are represented by strings.
If you don't want to go down the NamedColor enum route mentioned in comments, an easy solution might be to use reflection to go over the static Color
fields of the Color
class, and add each field name into a hashmap with its associated color as the key, removing one of the upper or lower-case duplicates since it has both. You could then look to see if your color is there.