title: How to Convert This RGB format in Python
body: <p>I am reading values from something in Python.  The values come in a strange format.  The documentation says:</p>
  
  <blockquote>
  <pre><code>Color is represented by a single value from 0 to 8355711. The RGB(r,g,b) function calculates
  ((R*127 x 2^16) + (G*127 x 2^8) + B*127), where R, G and B are values between 0.00 and 1.00
  </code></pre>
  </blockquote>
  
  <p>Som, a red color has the value of <code>16712965</code> I would love to know how to 'unpack' those values as a tuple or something but am struggling with that math.  If this is not possible, a way to convert that value to an rgb value somehow would be great.  Please help! Thanks</p>