code: public static String toHex(Color color) {
  		if(color != null) {
  			return "#" + Integer.toHexString(color.getRed()) + Integer.toHexString(color.getGreen()) + Integer.toHexString(color.getBlue()); 
  		}
  		return null;
  	}
docs: Returns the input color as an hexadecimal value (e.g. "#ABCDEF)").
  
  @param color
  the color to represent as an hexadecimal tuple.
  @return
  a string representing the RGB tuple of values.