HTML Color Picker with <input type="color">

Use the native HTML <input type="color"> control to choose a color. This demo lets you set the preview background and text color and copy the resulting hexadecimal values.

#ffffff
#212529
plus2net.com color scheme

Color input markup Top ↑

<label for="brandColor">Brand color</label>
<input type="color" id="brandColor" value="#336699">

Read the selected value Top ↑

const picker = document.getElementById('brandColor');
picker.addEventListener('input', () => console.log(picker.value));

HTML color chart Hex color values





plus2net.com










✖
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
© 2000-2026 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer