question: 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 ) ) ; }
target:  Convert colour encoded as hex to rgb.