Edit in JSFiddle

input:enabled{ background: #64be99; }
input:disabled{ background: #ccc; }
<input type ="text" enabled />
<input type ="text" disabled />