public String RGBtoHEX(int r, int g, int b) {
		final int MIN_LENGTH = 2;
		String red = Integer.toHexString(r);
		//String.format("%02", red);
		if (red.length() < MIN_LENGTH) {
			red = "0" + red;
		}
		String green = Integer.toHexString(g);
		//String.format("%02", green);
		if (green.length() < MIN_LENGTH) {
			green = "0" + green;
		}
		String blue = Integer.toHexString(b);
		//String.format("%02", blue);
		if (blue.length() < MIN_LENGTH) {
			blue = "0" + blue;
		}
		String output = "#" + red + blue + green;
		return output.toUpperCase();
	}