Color picker in Figma

Lets people choose any colour, or pick one from a set of swatches.

A colour picker has three parts. Color field shows the current colour and opens the picker. Color picker is the panel: a shade area, hue and opacity sliders, typed values and preset swatches. Color swatch is the small chip used in the picker and on its own.

Do

  • Show the value next to the colour, so colour is never the only clue.
  • Offer brand colours as swatches to keep designs on brand.
  • Keep recent colours in the swatch row.
  • Remember the format people used last.

Don't

  • Show the full picker when only a few colours are allowed.
  • Offer opacity where see-through colours won't work, like for text.
  • Show the eyedropper where the browser can't use it.
  • Let a colour be the only way to tell things apart; add a label.

Code and examples