public static final String toHTMLColor(Color c) {
        int color = c.getRGB();
        color |= 0xff000000;
        String s = Integer.toHexString(color);
        return s.substring(2);
    }
Return the hexadecimal color from a java.awt.Color

@param c the colour
@return hexadecimal string
starter/src/main/java/org/jivesoftware/openfire/launcher/GraphicUtils.java