Write text in particular font color in MS word using python-docx : <p>I am trying to write text in an MS Word file using python library python-docx.
I have gone through the documentation of python-docx's font color <a href="http://python-docx.readthedocs.io/en/latest/dev/analysis/features/text/font-color.html" rel="noreferrer">on this link</a> and applied the same in my code, but am unsuccessful so far.</p>

<p>Here is my code:</p>

<pre><code>from docx import Document
from docx.shared import RGBColor
document = Document()
run = document.add_paragraph('some text').add_run()
font = run.font
font.color.rgb = RGBColor(0x42, 0x24, 0xE9)
p=document.add_paragraph('aaa')
document.save('demo1.docx')
</code></pre>

<p>The text in word file 'demo.docx' is simply in black color.</p>

<p>I am not able to figure this out, help would be appreciated.</p>
