Changing colors of fields / roundable objects

Hi Neue Team,
I have a digital input value of 0 and 1 and like to change the color of a roundable field:
0 = grey = 180,180,180 (RGB)
1 = yellow = 255,255,255,0 (RGB)
what is the best way to achive this? Thanks upfront for your answer.