css change input color code example

Example 1: javascript change color of text input

document.getElementById("yourInputID").style.color = 'the color of your choice';

Example 2: input color custom

input[type="color"] {
	-webkit-appearance: none;
	border: none;
	width: 32px;
	height: 32px;
}
input[type="color"]::-webkit-color-swatch-wrapper {
	padding: 0;
}
input[type="color"]::-webkit-color-swatch {
	border: none;
}

Example 3: css color of input

input{
  background-color: white; /*The color of your choice here*/
}

Example 4: input type color

<div>
    <input type="color" id="head" name="head"
           value="#e66465">
    <label for="head">Head</label>
</div>