Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. 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}"