Textfield background color?

I have a dynamic textfield that displays different text. What I want is the ability to control both the text color and the background color of the textfield. Is this possible?