code: public static Color stringToColor(String str) {
      int icol = SVG_COLOR_NAMES.getInt(str.toLowerCase());
      if(icol != NO_VALUE) {
        return new Color(icol, false);
      }
      return colorLookupStylesheet.stringToColor(str);
    }
docs: Convert a color name from SVG syntax to an AWT color object.
  
  @param str Color name
  @return Color value