code: public static int toRGB(String color) {
  		validateHexSingle(color);
  		if (color.length() == 1) {
  			color += color;
  		}
  		return Integer.parseInt(color, 16);
  	}
docs: Convert the hex single color to a RBG integer
  
  @param color
  hex single color in format FF or F
  
  @return integer color inclusively between 0 and 255