title: GSpread CellFormat foregroundColor
body: <p>I am trying to colour my header in Google Sheets purple, however GSpread textFormat doesn't seem to bring back the correct colour.</p>
  
  <p>I have looked through the GSpread documentation, and there is little on what format the colour code should be, so I just assumed RGB as thats what it looks like it should be.</p>
  
  <p>Also looked through the Google Sheets API and that uses RGB.</p>
  
  <pre><code>fmt = CellFormat(textFormat=textFormat(bold=True, foregroundColor=color(112, 48, 160), fontSize=24),)
  format_cell_range(worksheet, 'B1:B1', fmt)
  </code></pre>
  
  <p>The header should be the same colour as the following RGB code: (112, 48, 160)</p>
  
  <p>Instead of this: (144, 208, 96)</p>