Skip to content

color-input

A wide-gamut color picker web component
Value
#0bf8
Color Space
oklch
Gamut
Contrast Color
View Code
<color-input value="#0bf8"></color-input>

Wide-Gamut Colors

sRGB, Display P3, Rec2020, and beyond. Automatic gamut detection shows which space contains your color.

Multiple Color Spaces

HSL, HWB, LAB, LCH, OKLCH, OKLAB, and wide-gamut RGB spaces with seamless conversion.

Area Picker

2D color area that adapts its axes to the active color space. Pointer drag and keyboard arrow-key support.

CSS Parts

Style every part of the picker with ::part() selectors — trigger, panel, sliders, and more.

<script type="module">
import 'https://cdn.jsdelivr.net/gh/argyleink/css-color-component/dist/index.js'
</script>
<color-input value="oklch(75% 30% 180)"></color-input>