Color picker

Drag in the square to pick a color, or type one in. You get its codes, its closest name and which text color reads on it.

How to use it

  1. Drag in the square to set saturation and brightness, and use the Hue slider to change the color.
  2. Or type a color as hex, rgb(), hsl() or a name. In Chrome and Edge, Pick from screen grabs a color from anywhere on your screen.
  3. Click any value to copy it.
  4. The page address updates, so you can share the color.

How it works

The square shows one hue at every saturation (left to right) and brightness (bottom to top), the HSV model most design apps use for their pickers.

Contrast is the WCAG 2 ratio between the color and pure white or black text. AA needs 4.5:1 for normal text and 3:1 for large text. The closest name uses CIEDE2000, a measure of how different two colors look.

Questions

How do I get the hex code of a color on my screen?

In Chrome or Edge, click Pick from screen and then click anywhere on your screen. In other browsers, take a screenshot and use the image color picker.

What's the difference between HEX, RGB and HSL?

They describe the same color in different ways. HEX and RGB give the red, green and blue amounts; HSL gives hue, saturation and lightness, which is easier to adjust by hand.

Why is the CMYK value approximate?

CMYK depends on the printer, ink and paper. The value here is a simple screen conversion, good for a starting point but not for print matching.

Can I pick a color from an image?

Yes, with the image color picker: upload or paste a picture and click any pixel.