The right way to test Android, regardless of support for future formats, is to rely on the class Color.
Like this:
try {
Color color = Color.parseColor(myColorString);
// color is a valid color
} catch (IllegalArgumentException iae) {
// This color string is not valid
}
, magenta, blue...
. myColorString String . - , , .