code: protected Color parseHtml(String value)
      {
          if (value.length() != 7) {
              throw new ConversionException(USAGE);
          }
  
          int colorValue = 0;
          try {
              colorValue = Integer.parseInt(value.substring(1), 16);
              return new Color(colorValue);
          } catch (NumberFormatException ex) {
              throw new ConversionException(value + "is not a valid Html color", ex);
          }
      }
docs: Parsers a String in the form "#xxxxxx" into an SWT RGB class.
  
  @param value the color as String
  @return RGB