title: Applying Custom Color as background to excel table row using jxl
body: <p>I have learned how to apply colours to background of excel table row using jxl library by using the below code</p>
  
  <pre><code>WritableFont cellFonts = new WritableFont(WritableFont.ARIAL, 11, WritableFont.BOLD, false, UnderlineStyle.NO_UNDERLINE, jxl.format.Colour.BLACK);
  WritableCellFormat cellFormats = new WritableCellFormat(cellFonts);
  cellFormats.setBackground(Colour.AQUA);
  </code></pre>
  
  <p>but i dont know how to apply custom color as background</p>
  
  <p>when i tried this <code>Colour myColour = Colour(221,221,221);</code> i got exception </p>
  
  <pre><code>WritableFont cellFonts = new WritableFont(WritableFont.ARIAL, 11, WritableFont.BOLD, false, UnderlineStyle.NO_UNDERLINE, jxl.format.Colour.BLACK);
  WritableCellFormat cellFormats = new WritableCellFormat(cellFonts);
  Colour myColour = Colour(221,221,221);
  cellFormats.setBackground(myColour);
  </code></pre>
  
  <p>can anyone please tell me some solution for this</p>