Image Size Reducer
Color picker

Pick a Color From a PNG

Click anywhere in an image and get the exact color underneath. HEX, RGB, and HSL come back together, each with a one-click copy, and every pick is kept in a swatch list.

  • Click any pixel for its exact value
  • HEX, RGB, and HSL at once
  • Swatch list of every color picked
  • One-click copy of any format
  • Sampled in the browser, nothing uploaded
Open the color picker

What the Pixel Actually Says

Eyes blend, software does not. A color picker is the difference between the shade you think you are looking at and the value the file is carrying.

Human vision is built for context. A mid gray looks warm next to blue and cool next to orange, and a shade that appears to be one flat tone across a large area is usually several slightly different values that the eye has merged. That is an efficient way to see the world and a hopeless way to match a brand color. A picker sidesteps all of it. It reads the numbers stored in the pixel under the cursor and hands back the exact values, in whichever format you need. When you pick a color from a PNG, you are not approximating an impression, you are reading the file, and that is the only way to be certain that the color you copy is the color that was drawn.

What the Color Picker Does

A click on any pixel returns its exact color in three formats, and every pick is collected into a swatch list.

Click to sample

Pick the color under the cursor at any point in the image, with no need to crop or isolate anything first.

Three formats

HEX, RGB, and HSL are returned together, so the value is ready for a stylesheet, a script, or a hand adjustment.

Swatch list

Every color picked is kept in a list, which turns a handful of clicks into a usable palette.

One-click copy

Copy any format straight to the clipboard, so a value can move into a design file or a code editor immediately.

Local processing

The image is read in the browser, so nothing is uploaded.

ImageSizeReducer

ImageSizeReducer

@imagesizereducer

A pixel is a number, not a color

Every pixel in a PNG holds three or four numbers describing how much red, green, blue, and sometimes transparency it contains. Those numbers are exact, repeatable, and entirely independent of how the image looks on your screen. A picker simply reports them. That is why the same pixel produces the same value on a laptop, a phone, and a printer, even when the color appears different on each, and why a picked value is trustworthy in a way that a visual judgement never is.
Pick a color
An image with a magnified pixel showing the exact numbers stored inside it
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

What looks flat is rarely flat

A large area that reads as a single color is often a subtle gradient or a field of nearby values, especially in anything that has been photographed, scanned, or saved through a lossy format. Picking two points a few centimetres apart in what appears to be one flat color can return two different codes, and neither of them is wrong. That is why the same swatch sampled in two places will not match, and why a collage of sampled colors tends to look muddy when assembled.
Pick a color
Two picks from an area that looks flat returning slightly different values
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

Three formats, three jobs

The same color can be written in three ways. HEX is a compact code used almost everywhere in web design, and it is the one to copy into a stylesheet. RGB gives the three channel values directly, which is what a developer or a script usually wants. HSL is the most useful of the three for thinking rather than coding, because it separates hue, saturation, and lightness. Seeing that a color sits at a certain lightness makes it far easier to produce a lighter or darker version of it by hand, which is hard to reason about from a hex code alone.
Pick a color
The same color written as HEX, RGB, and HSL side by side
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

Sampling a brand color correctly

The most common reason to reach for a picker is to recover an exact color from a logo or a piece of supplied artwork. The rule that makes it work is to sample from the flattest, most central part of the color, never near an edge. Edges are where colors blend. A pick a pixel or two inside a letterform lands on antialiased pixels that are a mix of the ink and the background, and the copied value will be subtly wrong. Moving into the heart of the shape, where the color is solid, gives the true value, and it is usually worth picking twice in different spots to confirm they agree.
Pick a color
A pick taken from the center of a letterform rather than its edge
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

Where a sample goes wrong

Almost every bad color pick comes from one of a few places: an antialiased edge, a shadow, a highlight, a gradient, or a compression artefact. Each of them returns a value that is real and unrepresentative, and the difference is usually invisible until the color is used somewhere else. The test is to look at the swatch beside the area rather than in isolation. A value that matches a solid region will look correct in the list; one lifted from an edge blends in and out of the artwork, which is the tell that the sample was taken from a transition rather than a surface.
Pick a color
A swatch sampled from a shadow compared with one from the solid area
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

Building a scheme from a photograph

Photographs are the other main use. Rather than inventing a palette, several deliberate picks across a picture, one from the sky, one from a wall, one from a garment, produce a set of colors that already belong together because they came from the same scene. The value of picking several, rather than one, is that the atmosphere survives. A single color lifted from a photograph loses the context that made it work; four or five taken together carry the light, the mood, and the relationships between them into whatever they are used for next.
Pick a color
Several picks taken across a photograph forming a coherent palette
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

The value is exact, the appearance is not

One honest caveat is worth knowing. The picker returns the color the file contains, and that color may still appear differently on another device, in another application, or in print, because screens and presses interpret the same numbers in their own ways. What that means is the value is reliable as data and not guaranteed as appearance. For web work, where the same code is broadcast to every visitor, that is ideal. For anything going to print, the sampled color is a good starting point but the final color is decided by the print process rather than by the file.
Pick a color
One color code shown across a screen, a phone, and a printed page
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

Made in the browser

Picking colors happens on material that is often private: a client's logo, an unreleased design, a personal photograph. Reading a value from it is no reason to send it anywhere. The sampling happens on the device. There is no upload and no account, so a color can be picked, checked, and picked again without the file leaving the machine.
Pick a color
A color being sampled from an image inside a browser window

How to Pick a Color From a PNG

Four steps. The second is where accuracy is won or lost, since a pick near an edge returns a blended value.

Step 1

Upload the image

Use the original file rather than a screenshot of it, so the values are the ones actually stored in the artwork.

Step 2

Click the color you want

Aim for the center of a solid area rather than near an edge, and pick twice in different spots to confirm the values match.

Step 3

Read the format you need

Take the hex code for the web, the RGB values for a script, or the HSL numbers when a lighter or darker version has to be worked out.

Step 4

Copy or keep collecting

Copy the value straight out, or keep picking until the swatch list holds the whole palette.

Who Picks Colors From PNGs

Four kinds of work where an exact value is needed.

WD

Web developers

matching a stylesheet to artwork

Copying a hex code straight from a supplied design removes the guesswork. Sampling from the solid area avoids the slightly off values that edges produce.

BD

Brand designers

recovering brand colors

When the specification is missing, the logo itself is the source. Picking from the center of each shape rebuilds the palette accurately.

CC

Content creators

thumbnails and graphics

A palette lifted from a photograph keeps a design feeling of a piece with the image. Several picks beat one for that.

IL

Illustrators

matching reference artwork

Sampling a reference is far quicker than eyeballing a match. Reading the HSL values also makes it easy to build a lighter version of the same color.

Frequently Asked Questions

How color sampling works, and why a picked value sometimes surprises people.

Read the number behind the shade

Upload an image, click any pixel, and copy its exact HEX, RGB, or HSL value, collecting as many as you need in a swatch list.

Pick a color
Exact, Not Approximate

The eye blends, and the file does not

Color perception is contextual by design, which is what lets a person read a face in poor light or a landscape under cloud, and it is exactly the wrong tool for matching a value. What reads as one flat shade is usually a spread of nearby numbers, and the tone that looks warm in one place can look cool in another without the pixel having changed at all. A picker removes that uncertainty by reading the numbers stored under the cursor and returning them in full. The craft is in where you click. Sampling from the middle of a solid area gives the true value, while a pick near an edge lands on antialiased pixels that are a blend of the color and whatever sits behind it, which is why a swatch lifted from a letterform can look almost right and be subtly wrong. Take the hex when a stylesheet needs a code, the HSL when a lighter variant has to be reasoned out, and several picks rather than one when a photograph is the source, since a palette draws its coherence from the scene it came from. Do that and to pick a color from a PNG becomes a measurement rather than an impression.

Smaller files, same picture.