title: How can I convert RGB to CMYK and vice versa in python?
body: <p>If I had a RGB decimal such as <code>255, 165, 0</code>, what could I do to convert this to CMYK?</p>
  
  <p>For example:</p>
  
  <pre><code>&gt;&gt;&gt; red, green, blue = 255, 165, 0
  &gt;&gt;&gt; rgb_to_cmyk(red, green, blue)
  (0, 35, 100, 0)
  </code></pre>