Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. 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}"
