Custom button card color matching the entity color

Hello,

Is there a way to make my custom button card color match the color of RGBW leds wich are controlled by that button? If i turn my leds on and select say RED the color of the button (for ON state) to change to RED and so on.

Any ideea would be more then welcome!