Change button when push it

I need to change background and colour of my button when push it, I have read that it’s using .active .activated so… Somebody can put an example using that please? Thank you very much.

Best regards!