Change button color using dropdown list

I’m almost done with the app I’m creating for Physical Education teachers. I just need to know which code to use to be able to change a button colour using a dropdown list.

Can you help me with that?

setProperty("button1", "background-color", getText("dropdown1"));