Skip to content
Toolvity

Pick colors from an image

Click any pixel to get its HEX, RGB and HSL — or pull the whole palette of a photo in one go.

  • No upload
  • No sign-up
  • No watermark
  • Free

How to pick colors from an image

  1. Step 1

    Open an image

    Drop a JPG, PNG, WebP, HEIC or SVG image into the box.

  2. Step 2

    Pick a color

    Click or tap anywhere; the magnifier helps you land on the exact pixel.

  3. Step 3

    Copy the code

    Copy the HEX, RGB or HSL value with one click.

  4. Step 4

    Grab the palette

    Copy the image's dominant colors as CSS, ready for your project.

Pixel-precise loupe

A magnifier follows your pointer so you can pick a single pixel, not a blurry average.

Instant palette

Get the 6–8 dominant colors of any image and copy them as CSS in one click.

Pick from screen

In supporting browsers, the eyedropper can sample colors from anywhere on your screen.

HEX, RGB and HSL explained

  • HEX (#3A7BD5) — the compact code used in CSS, design tools and brand guidelines.
  • RGB (58, 123, 213) — red, green and blue values from 0 to 255; how screens build color.
  • HSL (215°, 65%, 53%) — hue, saturation and lightness, the easiest model for making lighter or darker variations.

All three describe the same color. Toolvity gives you each of them for every pixel you pick, with its own copy button, so you can paste straight into a stylesheet, a design app or a message to a colleague.

Getting an accurate pick

Photos are made of many slightly different pixels, especially in shadows and textures, so an area you see as one shade can vary from pixel to pixel. Use the magnifier to choose a representative spot in the middle of an area, away from edges and highlights.

For logos and graphics, pick from flat areas. The edges of shapes are smoothed against the background, so a pixel right on the edge is a blend of two colors rather than either one.

JPEG compression can also shift colors slightly. If you're matching a brand color exactly, pick from a PNG or SVG original where you can.

Palettes for design work

The palette feature looks at the whole image and finds its 6–8 dominant colors, ready to copy as CSS. It's a fast way to build a color scheme from a photo, match a slide deck to a product shot, or check the colors of a logo you've been sent.

In browsers that support it, such as Chrome and Edge on desktop, you can also use the eyedropper to sample colors from anything on your screen — another tab, an app, a video — not just the image you opened.

Palettes also work in reverse: take the colors from a photo you love and use them in a presentation, a website or a poster, so everything feels related.

Put your colors to work

Building a site? The Favicon Generator lets you set a background color for your icon — paste in a color you picked here. And Image to Base64 embeds small images straight into CSS. Images are read in your browser; nothing is uploaded, and the color picker is free with no sign-up.

Frequently asked questions

How do I find the color of a pixel in an image?

Open the image and click the pixel. The HEX, RGB and HSL values appear instantly, ready to copy.

How do I get a HEX code from a picture?

Click the color you want and copy the HEX value with one click.

Can I get a color palette from an image?

Yes. Toolvity extracts 6–8 dominant colors and lets you copy them as CSS.

Can I pick a color from my screen?

In browsers that support the EyeDropper feature, such as Chrome and Edge on desktop, you can sample any color on your screen.

Why is the color slightly different from what I expected?

Photos vary from pixel to pixel, and JPEG compression shifts colors slightly. Pick from a flat area and use a PNG or SVG original for exact matches.

Is my image uploaded to pick colors?

No. The image is read in your browser and never leaves your device.

All Image tools