Add color value from color wheel to saved colors

Hello there,

So I’ve been using home assistant for a while now and I’ve made some useful things with it so far.
Now, a friend of mine recently came up to me and asked if I could make something for her to control her lights.
I immediately thought, home assistant would be a great solution for this. Which it was.
Now, I’ve already made everything so she can use her lights using mqtt on an esp32 but sadly I suck at anything UI based.
So now I’ve already found a nice looking frontend ui thingy where you can store colors.


Now I want to make it that she can add colors herself by holding down the button to turn on the leds.
So it should take the value that is currently selected on the color wheel and add it to the list of “favorite colors” below.
How would I go about doing this, so far I though of making a small database that just stores all of the color values and trying to rewrite the color thing to take it’s values from this database so I can just make a service.
Would there be a better way or an already existing way to create this, so far I’ve looked everywhere.

Please ask any questions you may have below and thanks already for helping me.

~Bretzel