public static Color hex2Rgb(String colourStr){
  return new Color(Integer.valueOf(colourStr.substring(1,3),16),Integer.valueOf(colourStr.substring(3,5),16),Integer.valueOf(colourStr.substring(5,7),16));
}

public static Color hex2Rgb ( String colourStr ) { return new Color ( Integer . valueOf ( colourStr . substring ( 1 , 3 ) , 16 ) , Integer . valueOf ( colourStr . substring ( 3 , 5 ) , 16 ) , Integer . valueOf ( colourStr . substring ( 5 , 7 ) , 16 ) ) ; }
convert colour encoded as hex to rgb .
