document.getElementById("yourInputID").style.color = 'the color of your choice';
selector { accent-color: somecolor; }
input{ background-color: white; /*The color of your choice here*/ } /* use important if you don't see any change */