Color Picker

Pick a colour and see HEX/RGB/HSL/CMYK, with EyeDropper API support.

The Color Picker lets you choose a colour with the browser colour control, type a value, or sample a colour from the screen when your browser supports it. It shows the colour as HEX, uppercase HEX, RGB and HSL, each with a copy button.

What are colour formats like HEX, RGB and HSL?

The same screen colour can be written in several formats. HEX writes the red, green and blue channels as pairs of hexadecimal digits, as in #3366cc. RGB gives the same channels as numbers from 0 to 255, such as rgb(51, 102, 204). HSL describes the colour as hue (an angle from 0 to 360 on the colour wheel), saturation and lightness in percent, such as hsl(220, 60%, 50%). They all describe colours in the sRGB space used by the web, so converting between them does not change the colour apart from rounding. HEX and RGB are compact and common in CSS, while HSL is easier to reason about when you want a lighter, darker or less saturated version of a colour.

How to use Color Picker

  1. Choose a colour Use Pick a colour, or type into Colour value, or click Pick from screen if it is shown.
  2. Check the preview The large swatch shows the selected colour.
  3. Read the formats The HEX, HEX (uppercase), RGB and HSL rows show the same colour.
  4. Copy Click the copy button on the row you need.

Frequently asked questions

Does it support transparency?

No. Only the opaque colour is kept, so alpha values are dropped.

Why does Pick from screen not appear?

Your browser does not support the EyeDropper feature. A message is shown in its place.

Why is HSL rounded?

Hue is rounded to whole degrees and saturation and lightness to whole percent, so converting back may differ slightly.

Are CSS colour names accepted?

No. Use HEX, rgb() or hsl().

Is the colour sent anywhere?

No. Everything happens in the page.