title: Setting RGB Colors with XSSFColor
body: <p>I'm trying to set an RGB Color Value using <a href="https://poi.apache.org/apidocs/org/apache/poi/xssf/usermodel/extensions/XSSFCellFill.html#setFillForegroundColor(int)" rel="noreferrer">XSSFColor</a> <code>setFillForeground()</code> method below</p>
  
  <pre><code>XSSFWorkbook workbook= new XSSFWorkbook();
  CellStyle style = workbook.createCellStyle();
  Style.cloneStyleFrom(headerStyle);
  Style.setFillPattern(HSSFCellStyle.SOLID_FOREGROUND);
  XSSFColor color = new XSSFColor(new java.awt.Color(215,228,188)); //accepts a short value
  style.setFillForegroundColor(color .getIndexed());
  
  Sheet sheet = workbook.createSheet(sheetName);
  Row headerRow = sheet.createRow(0);
  
  Cell cell = headerRow.createCell(i);
  cell.setCellStyle(style);
  </code></pre>
  
  <p>I'm passing the short value however my foreground is getting set to black no matter what the RGB value. I haven't yet discovered why this is - any ideas?</p>