public static Color getColor(String text) {
    if (StringUtil.isEmptyOrSpaces(text)) {
      return null;
    }
    String hexValue = text.charAt(0) == '#' ? text : getHexCodeForColorName(StringUtil.toLowerCase(text));
    if (hexValue != null) {
      return ColorUtil.fromHex(hexValue, null);
    }
    return null;
  }
public static Color getColor(String text)