change the color of an input by code

The way it comes there is just to change the color of the text and I am looking to change the color of an input
How can I do it?