Color Pickers

Color pickers turn a color into something you can point at: a saturation area for the shade, a strip for the hue, another for opacity, and a text field holding the value everything else agrees on. Thirteen blocks cover that range, from the picker a design tool opens, with a contrast map and a token ramp beside it, to gradient builders that write out their own CSS, compact fields that open a picker, and rows of dots that recolor a label in place.

The text field does more work than the spectrum. People rarely explore a color from nothing. They arrive with a hex from a brand document, paste it, and nudge from there. So that field has to accept what actually gets pasted, with or without the hash, and it must not fight a half-typed value. The other thing worth drawing is contrast: showing how a color reads against text at the moment it is chosen catches the unreadable pairing then, not in an audit months later.

13 blocks

Colour picker

The picker a design tool opens: paint type, stops, area and the value field in one card

Colour picker, contrast map

Picking text colours: the area shows where text stays readable on your background

Colour picker, tokens

A picker inside a design system that steers back to the system

Fancy picker

The same picker as a panel: tabs for your own colours and the shared libraries

Gradient builder

Building a gradient you can paste: stops, positions, angle and the CSS

Gradient builder, on canvas

Editing a gradient directly on the gradient

Gradient builder, smooth

Gradients without the grey middle: sRGB and OKLCH side by side

Choose colour

A compact colour field with the parts that were missing

Choose colour, field

How a colour is chosen in a form: a field that opens a picker

Choose colour, tones

Pick a hue, then a tone from a ramp of nine

Change colour

Recolouring labels in place

Change colour, palette

Recolouring from a few colours that work together

Change colour, in place

Recolouring without a popover

01

Using Color Pickers

Reach for it when

  • A theme editor where someone sets the colors the product will inherit
  • Design and diagramming tools, where color is chosen many times in a session
  • Building a gradient that will be pasted into a stylesheet
  • Recoloring a label, a calendar or a category from the row it belongs to

Reach for something else when

  • The product has a palette and the answer should come from it: show swatches, because a free spectrum invites colors that break the theme
  • The color carries meaning for a status or a category; bind it to the value in code with a fixed set of tokens so it means the same thing everywhere
  • Precision work on a phone: a saturation area under a fingertip cannot resolve what a pointer can, so lead with a hex field and a swatch grid
02

Where it shows up

01

Brand theme editors

An admin sets the colors the rest of the product inherits. The spectrum is for exploring, the hex field for pasting what marketing already decided, and the contrast readout catches a brand color that white text cannot sit on.

02

Gradient authoring

Building a fill you intend to paste into a stylesheet. A row per stop with its swatch and position, an angle slider over a live preview, and the CSS written out with a copy button so nothing is retyped.

03

Recoloring a list

Labels, calendars and categories where the color belongs to a row. A column of dots with the picked one ringed, and a tooltip that opens over it carrying the swatch and a hue track, so nothing navigates away.

04

Design tool fills

The panel a canvas opens when something is selected. Paint type, stops, spectrum, sampler and the hex in one card, with recently used colors underneath so a file stays consistent across a long session.

03

Questions

Which color model should a picker use?

Show HSV or HSL in the interface and store hex or RGB. Hue, saturation and value map onto the shapes people already expect (a strip for hue, an area for the rest) while RGB has no useful two-dimensional layout. Convert on the way in and on the way out instead of keeping two values that can drift apart.

Should a color picker offer an alpha channel?

All blocks
The Orvain Dispatch

Premium components, free in your inbox.

Join the Orvain Dispatch and get production-ready components, free to keep: React and Vue code plus the Figma frame, yours to ship.

Just components, never spam. You can unsubscribe anytime.