Pick any color and get its code in every common format. Click the big swatch to open your browser's color picker, type a HEX code, move the red, green and blue sliders, or load an image and click anywhere on it to sample that exact color. Copy the HEX, RGB, HSL, HSV or CMYK value with one click, see a row of lighter and darker shades, and check how readable white or black text is on your color. Everything runs in your browser, and your images are never uploaded.
A color code is just a way of writing the same color. HEX, RGB and HSL all describe the same pixel, so pick the one your tool or stylesheet expects.
How to use the color picker
- Pick a color: click the big swatch to open the color picker, or type a HEX code such as #6D28D9 in the field.
- Fine-tune it: move the red, green and blue sliders to adjust the color one channel at a time.
- Sample from an image: choose or drop an image, then click anywhere on it. The color under your click becomes your color.
- Pick from your screen: in browsers that support it, such as Chrome and Edge, press Pick from screen and click any pixel on your display.
- Copy a code: click a code in the list or one of the chips under the swatch. Copy all codes copies every format at once.
- Reuse a color: click a shade or a recent color to load it again.
Color formats explained
The example codes below are all the same purple, shown in each format.
| Format | Example | Best for |
|---|---|---|
| HEX | #6D28D9 | Web design, CSS and most design tools. Short and easy to paste |
| RGB | rgb(109, 40, 217) | Screens, CSS and image editors. Red, green and blue from 0 to 255 |
| HSL | hsl(263, 70%, 50%) | Making a color lighter, darker or less saturated by hand |
| HSV | hsv(263, 82%, 85%) | Color pickers in design apps. Hue, saturation and brightness |
| CMYK | cmyk(50%, 82%, 0%, 15%) | A starting point for print. Printed colors can look different |
What this tool does and does not do
The tool converts the color you pick into several code formats and shows shades, tints, and the contrast against white and black text. It runs entirely in your browser, and the image you load is only read to find the color of the pixel you click. The CMYK value is a simple mathematical conversion, so it is a starting point for print rather than an exact match for a printer or paper, which depend on color profiles. Colors are read in the standard sRGB space, and an image with a different profile can show slightly different values in other apps. The contrast figures follow the WCAG formula, but they do not replace testing your real design.
Tips for better results
- Click a flat area of an image: photos have noise, so a single pixel can differ from the area around it. Click the middle of a solid area for a typical color.
- Check the contrast line: text needs a ratio of at least 4.5 to 1 to be easy to read at normal size, and 3 to 1 for large text.
- Use HSL to build a palette: keep the hue the same and change the lightness to get matching shades.
- Copy the format your tool expects: CSS accepts HEX, RGB and HSL, while many design apps ask for HEX.
- Use the recent list: it keeps the colors you used last so you can compare them.
Pick a color once, copy it in the format you need, and keep working. Your recent colors stay on this device.
Common color picker problems
- The HEX field will not accept my code: use three or six letters and numbers from 0 to 9 and A to F, such as #FA0 or #FFAA00.
- Pick from screen is missing: the screen picker needs a browser that supports it, such as a current Chrome or Edge. Use the swatch or an image instead.
- The color from my image looks slightly off: the pixel you clicked may be part of an edge or noise. Click a flat area, or try a few spots.
- That spot is transparent: a fully transparent pixel has no color. Click a part of the image that is filled in.
- My recent colors disappeared: they are saved in your browser. Clearing site data or using a private window removes them.
Frequently asked questions
Is this color picker free?
Yes. There is no sign-up and no limit on how many colors you pick.
Are my images uploaded?
No. The image is opened in your browser, and only the pixel you click is read. Nothing is sent to our servers.
How do I get the color from an image?
Choose or drop an image into the picker, then click the spot you want. The big swatch updates to that color, and every code is ready to copy.
What is the difference between HEX and RGB?
They describe the same color in different ways. HEX writes the red, green and blue values in base 16, such as #6D28D9, while RGB writes them as numbers from 0 to 255, such as rgb(109, 40, 217).
Is the CMYK value accurate for printing?
It is a mathematical conversion from RGB, so it is a good starting point. Printed colors depend on the printer, ink and paper, so ask your printer for a proof if the exact color matters.
What do the contrast numbers mean?
They show how easy white or black text is to read on your color. A ratio of 4.5 to 1 or more meets the WCAG AA level for normal text.
Can I pick a color from anywhere on my screen?
Yes, in browsers that support the screen picker, such as Chrome and Edge. Press Pick from screen, then click any pixel on your display.