The HTML5 has an input fields that contains color. Just write “color” in your type attribute of your input field. see below example <!DOCTYPE html> <html> <body> <h2>Color Picker</h2> <p>The <strong>input type="color"</strong> is used for input fields that should contain a color.</p> <p>Depending on browser support:<br>A color ...