Color picker

A color picker lets you choose a color visually and returns its code in the formats you need: HEX, RGB, HSL, OKLCH and CMYK, each with a one-click copy button.

To pick a colour, drag inside the square for saturation and brightness, then set the hue and opacity. The picker shows the matching HEX, RGB, HSL, OKLCH and CMYK codes so you can copy the one your CSS or print job needs.

221°
100%
HEX#2563eb
RGBrgb(37, 99, 235)
HSLhsl(221, 83%, 53%)
OKLCHoklch(54.6% 0.215 262.9)
CMYKcmyk(84%, 58%, 0%, 8%)

How the color picker works

  1. Drag inside the square to set saturation (left to right) and brightness (bottom to top).
  2. Move the hue slider to change the base colour, and the opacity slider to add transparency.
  3. Copy the HEX, RGB, HSL, OKLCH or CMYK value from the output rows below the picker.

Color picker questions

How do I pick a color and get its code?

Drag inside the saturation and brightness square, then move the hue and opacity sliders. The HEX, RGB, HSL, OKLCH and CMYK values update as you go, and each row has a copy button.

Can I paste a color I already have?

Yes. Type or paste a HEX, rgb(), hsl() or oklch() value into the field above the picker and the square, sliders and every output code update to match it.

Does the color picker work on a phone?

Yes. The square responds to touch and pointer input, and the sliders use the native range control, so you can pick and copy a colour on a phone or tablet.

Related tools

More color tools

Image tools

CSS generators

Image & SVG tools

Typography & units

More free tools

All free tools