"> "> ">
<input type="color" name="favcolor" value="#ff0000">

In supporting browsers, the input element with a type attribute whose value is color creates a button-like control, with a color equal to the value of color attribute (defaults to black if value is not specified or is an invalid hexadecimal format).

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/61a24a00-6c6e-4f0b-9976-cab642f06ba3/Untitled.png

Clicking this button opens the operating system’s color widget, which allows user to select a color.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/aa224ee2-2866-40e8-b848-373caa74466b/Untitled.png

Fallback for browsers which do not support this input type is a regular input type=text.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/5a47ace4-56c0-42cd-9354-09ad36848d13/Untitled.png