<input type="color">
The <input type="color"> HTML element shows a color picker from which users can choose a color value.
Overview
The <input type="color"> HTML element shows a color picker from which users can choose a color value.
Browser support
| Feature | Desktop | Mobile | ||||
|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Safari | Chrome Android | Safari iOS | |
| 20 | 14 | 29 | 12.1 | 25 | 12.2 | |
1+Supported (version) Not supported ※Has note Sub-feature descriptions sourced from MDN Web Docs (CC BY-SA 2.5)
Syntax
HTML
<label>Theme Color:
<input type="color" value="#3498db">
</label> Live demo
col-input and tekitinput. combination
Color input and text input linkcol-co-d display.
PreviewFullscreen
Use cases
Using <input type="color">
The <input type="color"> HTML element shows a color picker from which users can choose a color value.
Cautions
- Limited browser support. Check compatibility before use.
Accessibility
- Verify how this element is announced by screen readers.
Related links
Powered by web-features