class XMLUtil {

	@Pure
	@SuppressWarnings("checkstyle:magicnumber")
	public static String toColor(int rgba) {
		final String code = ColorNames.getColorNameFromValue(rgba);
		if (!Strings.isNullOrEmpty(code)) {
			return code;
		}
		final StringBuilder s = new StringBuilder("#"); //$NON-NLS-1$
		s.append(Integer.toHexString(rgba));
		while (s.length() < 7) {
			s.insert(1, '0');
		}
		return s.toString();
	}

	private  XMLUtil();

}