Card background color as light color

Hello everyone, I’m new to this forum, I want to set the background color of a card to match the color of the rgb bulb, just like it happens with the bulb icon, is this possible?

It is with the custom button card