check if the string is a hexadecimal color
bool isHexColor(String str) { return _hexColor.hasMatch(str); }