Use RBG_Color value of a light, to change the color of an icon

Hey
I would like to Use RBG_Color value of a light, to change the color of an icon within my HAFloorplan setup, i believe this can be done just unsure how to implement it.

In simple terms i want the color in my floorplan icon to match the real colour of the RGB light

Thanks in advance

Check this out hopefully it’s helpful!
https://github.com/bradcrc/color-lite-card/tree/master/tutorial

Thank you very much, would you happen to know how to modify this to work with HAFloorplan?

Thanks
Mike