HTML5 Please

<input type=color>

Use with caution with polyfillhtml

input type=color renders a native color picker that returns a hex value, handy for simple theme and preference controls. Support is broad, but the picker interface varies by platform, so test it or offer a scripted picker where the exact experience matters.

Verdict
Use with caution
Category
HTML features
Browser support
Can I Use
Works in
IE10+

Should you use <input type=color> in 2026?

A color input will fall back to a plain text input if it's not supported. So far Chrome, Opera and Firefox support this.

You should probably avoid this until it has support in Safari or IE.

Polyfills and fallbacks

Spectrum