List of utility methods to do RGB Color Create
if (rgb > 0xFFFFFF) rgb = 0xFFFFFF; if (rgb < 0) rgb = 0; String str = "000000" + Integer.toHexString(rgb); return "#" + str.substring(str.length() - 6);