Color Picker

Pick any colour on the colour square, slide the hue and opacity, or use the eyedropper to grab a colour from anywhere on your screen. The tool shows the same colour as HEX, RGB, HSL, HSV and OKLCH, each with a copy button, plus how well it reads as text on white and on black. Everything happens in your browser.

HEX, rgb(), hsl(), hsv(), oklch() or a name like navy

To pick from anywhere on screen, open this page in Chrome or Edge on a computer. To pick from a photo, use the image colour picker.

HEX

#2563EB

RGB

rgb(37 99 235)

HSL

hsl(221 83% 53%)

HSV / HSB

hsv(221 84% 92%)

OKLCH

oklch(54.6% 0.215 262.9)

CSS variable

--brand: #2563EB;

Contrast as text: 5.16:1 on white, 4.06:1 on black. Body text needs at least 4.5:1.

Colour picking runs in your browser. What you type never leaves this device.

Features

  • Saturation and brightness square with hue and opacity sliders

  • Screen eyedropper in Chrome and Edge on computers: pick a colour from any app or website

  • Copy as HEX, RGB, HSL, HSV / HSB, OKLCH or a CSS variable

  • Type or paste any colour code to load it: #2563EB, rgb(37 99 235), hsl(221 83% 53%), oklch() or a name

  • Contrast against white and black, so you know if it works as text

  • Keyboard friendly: arrow keys move the picker, Shift for bigger steps

Who uses a colour picker

Web developers

Get a colour in the exact format your CSS, Tailwind config or design tokens use, including modern OKLCH.

Designers matching a brand

Grab the colour of a logo, website or app on your screen with the eyedropper and get its HEX code for Canva, Figma or a print shop.

Students and beginners

See how hue, saturation and brightness change a colour, and how the same colour is written in different formats.

Picking and using colours

Which colour format should I copy?

  • HEX (#2563EB) works everywhere: CSS, Canva, Figma, PowerPoint, WordPress themes.
  • RGB is the same colour as three numbers from 0 to 255; rgb(37 99 235 / 0.5) adds 50% opacity.
  • HSL describes hue, saturation and lightness, which makes it easy to write a lighter or darker version by hand.
  • HSV (also called HSB) is what Photoshop and most picker squares use.
  • OKLCH is the newest CSS format. Its lightness matches how bright colours look to the eye, so steps in a palette look even.

Picking from your screen

In Chrome or Edge on a computer, click "Pick a colour from the screen" and then click anywhere: another tab, a PDF, a photo viewer or your desktop. The browser only gives the tool the one colour you clicked. Safari, Firefox and phone browsers do not offer the screen eyedropper yet; to pick from a photo there, use the image colour picker.

Will the colour work as text?

Under the formats you can see the contrast ratio of the colour on white and on black. Normal text needs at least 4.5:1 to pass the WCAG AA guideline. To test a text colour against a specific background, use the colour contrast checker.

Related tools

Color Picker - FAQ