How can I change the UI button color when clicked

Hello, I would like to do a switch to turn off and on the music of a videogame and y would like to set the button color in red when the music is off.
I am using the new UI sistem so the button is the child of a canvas.

If you have a better solution please tell it to me, i would be very thansful.

Thank you, see ya

you can simply call this YourButton.image.color = ColorYouWant once you get the button clicked event.