3
You can do this way, but it is impossible for you to withdraw the option from another.
<input type="color" id="cores" name="ArcoIris" list="arcoIris" value="#FF0000">
<datalist id="arcoIris">
<option value="#FF0000">Vermelho</option>
<option value="#FFA500">Laranja</option>
<option value="#FFFF00">Amarelo</option>
<option value="#008000">Verde</option>
<option value="#0000FF">Azul</option>
<option value="#4B0082">Indigo</option>
<option value="#EE82EE">Violeta</option>
</datalist>
Dude.. There’s a library called "Jscolor"... I’ll leave the reference here... So you can do this right from a textbox, it’s very easy: http://jscolor.com/examples/
– Wilson Santos
opa thanks, still not fit me, I want something but simple and I think it is possible only with css without use of library or javascript, in my case I need to define only a 5 colors at most.
– Patrique