how to make spectrum color button/ color picker button : <p>I need to build a button that will display color spectrum onclick, and by clicking on a spot inside the color spectum, the spot color will be picked and the text color will change according to the picked color.</p>

<p>This is kind of what I need</p>

<p><a href="https://i.stack.imgur.com/HdPGj.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HdPGj.jpg" alt="enter image description here"></a></p>

<p>Thanks in advance</p>

<p>p.s
Spectrum color area need to accessible with keyboard as well.</p>
