title: How to get excel cell color in java
body: <p>I have an <strong>XSLX</strong> sheet in which few cells are having background color Green, few Red and rest are default(white).</p>
  
  <p>How to identify the cell color ? based on the cell color, i have to process the text in the cell. I am using apache poi.</p>
  
  <pre><code>Cell cell = row.getCell(6);
  CellStyle style = cell.getCellStyle();
  Color cellColor = (cell.getCellStyle().getFillBackgroundColorColor());
  </code></pre>
  
  <p>if the cellColor will hold the background color of the cell, how can the color name be retrevied from it.</p>
  
  <p>Please Help</p>
  
  <p>thanks
  Ramm</p>