HTML Color Picker

This is a code example of the native HTML color picker. The format is either RGB, HEX or HSL. The color picker's RGB format provides red, green, or blue values between 0 and 255. The HEX format is a 6 digit hexadecimal value. HSL is Hue, Saturation, and Lightness. The hue is a color represented by degrees on the color wheel. You can also use the eye dropper to pick a color directly from your screen.

Method

<input type="color" id="color-picker" 
name="color-picker" value="#e66465">
<label for="color-picker">Pick a color</label>

Example:

<p>Pick a color, then select the format.</p>

<input type="color" id="color-picker" 
name="color-picker" value="#e66465">
<label for="color-picker">Pick a color</label>

// Here is an example of the native HTML color picker

Copyright © Lage.us Website Development | Disclaimer | Privacy Policy | Terms of Use