Color Picker and Image Color Picker

Pick a color from the palette, or upload, paste or link an image and click any pixel. Get HEX, RGB, HSL, HSV and CMYK codes, build a palette and check contrast. Your images stay on your device.

Type or paste a value in HEX, RGB, HSL or HSV, such as #7c3aed, rgb(124, 58, 237) or 263 83 58.

Your palette

Colors from the image

Text contrast

Compare with another color

Aa Sample text

    Color blindness preview

    An approximate simulation, useful for spotting problems. It is not a medical test.

    Shades and tints

    Matching colors

    Click any swatch to use that color.

    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

    1. Choose Pick a color to use the color box, or From an image to take a color from a picture.
    2. 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.
    3. Press Add to palette to keep colors you like, up to 12.
    4. 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

    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:

    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

    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