What Is a Color Picker?
A color picker lets you choose a color and gives you its code, so you can use exactly the same color in a website, a design, a document or a QR code. This one works two ways. You can pick a color directly, or you can load an image and click any pixel to find out its color. Either way you get the code in the formats designers and developers use.
How to Use the Color Picker
- Choose Pick a color to use the color box, or From an image to take a color from a picture.
- Copy the code you need from the HEX, RGB, HSL, HSV or CMYK fields. You can also type a value into HEX, RGB, HSL or HSV and the other formats update.
- Press Add to palette to keep colors you like, up to 12.
- Use the contrast and color blindness panels to check that the color is readable.
Pick a Color From an Image
Upload an image, drop one onto the page, paste a screenshot with Ctrl+V, or enter an image address. Move the pointer over the image and a magnifier shows the exact pixel and its HEX code. Click or tap to pick it. On a touch screen, press and drag to see the magnifier above your finger, then lift to pick.
Prefer the keyboard? Focus the image, move the magnifier with the arrow keys (hold Shift for bigger steps) and press Enter. If single pixels are noisy, as in photographs, set the sample size to a 3×3 or 5×5 average. The tool also finds the ten main colors in your image automatically, and you can add them all to your palette in one click.
Images stay on your device. The picking happens in your browser, and the image is not uploaded. If you load an image from a web address, your browser fetches it directly. Many websites block other sites from using their pictures this way. If that happens, download the image and upload the file instead.
Color Formats Explained
- HEX: a six-character code such as #7C3AED, the most common format on the web.
- RGB: the amount of red, green and blue from 0 to 255, such as rgb(124, 58, 237).
- HSL: hue, saturation and lightness. It is easy to adjust by hand, because you can make a color lighter or darker by changing one number.
- HSV: hue, saturation and value (brightness), used in many painting and design programs.
- CMYK: cyan, magenta, yellow and black, the inks used in printing. The values here are a simple screen-based estimate, so ask your printer for a proof for important jobs.
The tool also shows the closest basic CSS color name, such as "tomato" or "steelblue". It uses a short list of 49 common names, so treat it as a rough guide.
Build and Export a Palette
A palette is a small set of colors that work together. Add colors from the picker, the image or the suggestions, then export them as a plain HEX list, as CSS variables ready to paste into a stylesheet, or as JSON. You can also download the palette as a PNG image of labelled swatches.
Check Contrast and Accessibility
Text must be easy to read against its background. The contrast ratio compares the brightness of two colors, from 1:1 (no difference) to 21:1 (black on white). The Web Content Accessibility Guidelines set these minimums:
- AA for normal text: 4.5:1.
- AAA for normal text: 7:1.
- AA for large text, icons and interface parts: 3:1.
Compare your color with white, black or any second color to see which levels it passes. Picked a brand color for a QR code? Use it in the QR Code Generator, which also checks contrast, because a low-contrast code may not scan.
Color Blindness Preview
Roughly 1 in 12 men and a smaller share of women have some form of color vision deficiency, most often affecting reds and greens. The preview shows your color as it may look with protanopia, deuteranopia, tritanopia and achromatopsia. It is an approximation, but it quickly shows when two colors become hard to tell apart.
The lesson is simple: never rely on color alone. A report or calculator that shows gains and losses should label each figure, not just color it. The results of the Australia Capital Gains Crypto Calculator are a good example, with each figure sitting in a card that names it, such as Total Gains, Total Losses and Net Capital Gain.
Tips for Accurate Colors
- A picked color can differ slightly from the original because images are compressed and may use a different color profile.
- Use the 5×5 average for photos, and a single pixel for flat graphics and screenshots.
- Check a color on the device where it will be used. Screens differ.
- Keep a palette to a few colors and use shades of them for backgrounds and borders.
How Color Picking Works
When you click an image, the page reads the pixel under the pointer from a copy of the picture drawn in your browser. The magnifier shows an 11-pixel-wide area around it. With the 3×3 or 5×5 option, the tool averages the surrounding pixels, which smooths out noise. To find the main colors of an image, it shrinks a copy to at most 120 pixels on its longest side and groups similar colors into ten bands using the median cut method, then lists the average of each band, largest first. The color blindness preview uses standard approximation formulas, so treat it as a guide.
Example: From a Color to Every Format
The purple used on this site, #7C3AED, converts to rgb(124, 58, 237), hsl(262, 83%, 58%), hsv(262, 76%, 93%) and cmyk(48%, 76%, 0%, 7%). White text on that color has a contrast ratio of about 5.7:1, which passes the 4.5:1 minimum for normal text but not the 7:1 level. The closest basic CSS color name is slateblue.
Frequently Asked Questions
How do I get the color code from an image?
Open the From an image tab, upload or paste your picture, then click the spot you want. The HEX, RGB, HSL, HSV and CMYK codes appear straight away.
Is my image uploaded?
No. The image is read and processed in your browser and is not uploaded or saved. The page also loads a cookie banner and an advertisement from third-party services, described in our Privacy Policy.
Can I paste a screenshot?
Yes. Copy the screenshot and press Ctrl+V (Cmd+V on a Mac) anywhere on the page.
Can I pick a color from anywhere on my screen?
In browsers that support the eyedropper, such as Chrome and Edge, the Pick from screen button appears. Other browsers can use the image tab with a screenshot.
Which format should I use on a website?
HEX and RGB work everywhere. HSL is handy when you want to adjust lightness.
How many colors can the palette hold?
Up to 12. Remove a color with the × beside it.
Why is the CMYK value different from my printer's?
The tool converts directly from screen colors. Real printing depends on the paper, the inks and a color profile, so use the value as a starting point.
Related Tools and Guide
- QR Code Generator Make QR codes for links, text, Wi-Fi, email, phone, SMS, WhatsApp, contacts, locations, events, X and crypto. Add colors, a frame or a logo.
- Image Compressor Shrink JPG, PNG and WebP images right in your browser. Pick the quality and size, then download.
- Meta Tag Generator Create SEO, Open Graph and X card meta tags with live Google and social previews, robots and language settings, and import of existing tags.
- Read the guide: Color Picker & HEX/RGB Converter: A Simple Guide A step-by-step article about this tool.