Color Picker

Pick a color with the hue, saturation and lightness sliders, your system picker, or the screen eyedropper — then copy the HEX, RGB, HSL or CMYK code. Everything runs in your browser; nothing is uploaded.

#3B82F6
217°
91%
60%

HEX

#3B82F6

RGB

rgb(59, 130, 246)

HSL

hsl(217, 91%, 60%)

CMYK

cmyk(76%, 47%, 0%, 4%)

This is a medium, vivid cool blue. Contrast is 3.68:1 against white and 5.71:1 against black — use black text for WCAG AA body copy.

Tints & shades

How to use the color picker

Adjust with the sliders. Hue sets the base color around the wheel from 0 to 360°. Saturation controls how vivid it is, from grey at 0% to fully intense at 100%. Lightness runs from black at 0% through the pure hue at 50% to white at 100%. Changing one leaves the others untouched, which makes building a consistent set of colors much easier than nudging hex digits.

Type a hex code. Paste any three- or six-digit hex value and the picker resolves it — #39F and #3399FF both work.

Sample from your screen. On Chromium-based browsers the eyedropper samples any pixel on your display, including other applications. To pull colors out of a specific image instead, use the image color picker.

Choosing the right color format

HEX — the default for web work. Compact, universally supported in CSS, and what most design tools hand you.

RGB — matches how displays actually work. Useful when you need an alpha channel via rgba(), or when working with canvas and image data.

HSL — the most human-friendly. Build tints and shades of a brand color by changing lightness alone, and keep the hue exactly consistent.

CMYK — for print. Screens emit light (additive) while ink absorbs it (subtractive), so vivid on-screen colors often cannot be reproduced exactly in print. Treat CMYK values as a starting point and confirm with a proof.

Picking colors that stay accessible

A color that looks good in isolation can still fail behind text. WCAG 2.1 AA asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text, and the ratio depends far more on lightness than on hue — so when a pairing fails, adjust the lightness slider rather than hunting for a different color.

Be aware too that HSL lightness is not the same as perceived brightness: pure yellow at 50% lightness looks far brighter than pure blue at the same value. Always verify with a real ratio rather than trusting the number. Test pairings in the contrast checker, and see the color theory guide for why this happens.

Frequently asked questions

What is a color picker?

A color picker is a tool that lets you choose a color visually and read back its numeric code — most often HEX for web use, RGB for screens, HSL for adjusting a color intuitively, and CMYK for print. Instead of guessing at values, you adjust sliders or click a swatch and copy the exact code.

How do I pick a color from my screen?

If your browser supports the EyeDropper API (Chrome, Edge and other Chromium browsers), the "Pick from screen" button lets you click anywhere on your display to sample that exact pixel. Firefox and Safari do not support it yet — on those browsers, use the system picker button, or upload the image to our image color picker instead.

What is the difference between HEX, RGB, HSL and CMYK?

HEX is a six-digit hexadecimal notation (#3B82F6) used throughout web development. RGB gives the red, green and blue channels from 0–255 and is how screens actually emit color. HSL describes hue (0–360°), saturation and lightness, which makes it far easier to adjust a color by hand. CMYK describes cyan, magenta, yellow and black ink percentages for print. All four can describe the same color.

Is HSL better than HEX for choosing colors?

For picking and adjusting, yes — HSL separates the three things you usually want to change independently. Want a lighter version of the same color? Raise the lightness and leave hue and saturation alone. Doing that in HEX means recalculating all three channels. Most developers pick in HSL and ship in HEX.

Does the color picker work offline or upload my data?

Everything runs in your browser using client-side JavaScript. No color, image or input is sent to a server, and nothing is stored. Once the page has loaded it will keep working without a connection.

How do I know if my color is accessible for text?

Check the contrast ratio against the text color you plan to use. WCAG 2.1 AA requires at least 4.5:1 for normal text and 3:1 for large text. This picker shows live contrast against both white and black; for specific pairings use the contrast checker.