title: How can I set the RGB Color in font Using xssfworkbook npoi
body: <p>How can I set the RGB color in <code>cell backgroudn</code> using class <code>xssfworkbook</code> using npoi?</p>
  
  <pre><code>byte[] rgb = new byte[3] { 192, 50, 90 };
  XSSFCellStyle HeaderCellStyle1 = (XSSFCellStyle)wb.CreateCellStyle();
  HeaderCellStyle1.SetFillForegroundColor(new XSSFColor(new Color(255, 255, 255)));
  </code></pre>
  
  <p>I don't want to use this pattern:</p>
  
  <pre><code>titlestyle.BottomBorderColor = IndexedColors.Grey25Percent.Index;
  </code></pre>