input type="color"
As usual, when starting a new article, I look for existing resources about the topic.
In this case I found this one by Ana Tudor.
It is so well researched and written that instead of quoting all the stuff from there, I invite you to read it for yourself. Enjoy.