Use HTML markup to change the text color for attributes and methods.
To do so
See also How can I set the font size of attributes and methods in UML class nodes? and How can I achieve different text stylings within one label?