//自定义背景颜色
HSSFPalette palette = ((HSSFWorkbook) wb).getCustomPalette();
palette.setColorAtIndex(HSSFColor.LIME.index, (byte)234, (byte)234, (byte)234);
titleStyle.setFillForegroundColor(HSSFColor.LIME.index);
titleStyle.setFillPattern(HSSFCellStyle.SOLID_FOREGROUND);
//自定义字体颜色
palette.setColorAtIndex(HSSFColor.SEA_GREEN.index, (byte)23, (byte)110, (byte)169);
Font titleFont = wb.createFont();
titleFont.setBoldweight(Font.BOLDWEIGHT_BOLD);
titleFont.setFontHeight((short)200);
titleFont.setColor(HSSFColor.SEA_GREEN.index);
titleStyle.setFont(titleFont);
titleStyle.setFillBackgroundColor(Font.COLOR_NORMAL);