title: Decimal color to hexadecimal python
body: <p>I am trying convert decimal color to hexadecimal.</p>
  
  <p>For example, yellow color is <code>#FFFF00</code> and there decimal is <code>16776960</code>.</p>
  
  <p>How can I convert to <em>hexadecimal</em> ( <code>#FFFF00</code> ) from <em>decimal</em> ( <code>16776960</code> ) ?</p>
  
  <p>I tried to use this:</p>
  
  <pre><code>color = 16776960
  hex(color)
  </code></pre>
  
  <p>and tried with <code>hex(int(color))</code></p>