Not able/How to set a custom color for ICellStyle FillForegroundColor than provided named colors

Nov 28, 2013 at 9:47 AM
Hi, We are newly started using NPOI components.
We are having issues to set FillForegroundColor of ICellStyle property.

ICellStyle HeaderCellStyle = xssfworkbook.CreateCellStyle();
HeaderCellStyle.FillForegroundColor = NPOI.HSSF.Util.HSSFColor.RED.index;
FillForegroundColor expects of type short.

How do we set a different color rather than using colors in HSSFColor.
We need to set to "#BE4E5E" and how do we do that for ICellStyle property FillForegroundColor

Colud someone help us by some example?