Input type color JavaScript code example
Example 1: javascript change color of text input
document.getElementById("yourInputID").style.color = 'the color of your choice';
Example 2: input type color
<div>
<input type="color" id="head" name="head"
value="#e66465">
<label for="head">Head</label>
</div>