Special "symbol" display

I want to display a symbol/color radio button as in the attached. I need to change the color based on a HEX value I will attach to it. Anyone know how to do that?

Screenshot 2024-12-02 at 9.57.46 AM