public static final String convertColorNameToRGB(String name) {
        int c = convertNamedColor(name.toLowerCase());
        if (c >= 0) {
            //int rgb = c.getRGB();
            char[] buf = new char[7];
            buf[0] = '#';
            for (int pos = 1, shift = 20; shift >= 0; ++pos, shift -= 4) {
                int d = 0xF & (c >> shift);
                buf[pos] = (char) ((d < 10) ? d + '0' : d + 'A' - 10);
            }
            name = new String(buf, 0, 7);
        }
        return name;
    }