Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
You could try something like
myTextElement.fill = "{Ref '25% Gray' 100}"
,
myTextElement.fill = "{Ref '$ISO_BLACK' 25}"
or
myTextElement.fill = "{RGB 191 191 191}"