PDF Studio

IMAGE STUDIO / TOOL GUIDE

How to sample an image color and copy HEX or RGB

Select a source pixel, check its transparency and use precise coordinates for repeatable samples.

On this page

Before you start

Image Color Picker reads the color at one chosen pixel. It is useful for matching a visible detail or recording a specific source location, but it does not automatically produce a dominant-color palette. A shadow, antialiased edge or translucent pixel can differ from the solid color you intended to sample.

Follow the steps

  1. Upload the image and click the intended pixel on the canvas.

  2. Use Sample X and Sample Y for precise source-pixel coordinates.

  3. Read HEX, RGB and Alpha; move the sample if it lands on an edge.

  4. Copy HEX or RGB, or download the sampled-color JSON record.

On mobile, open the settings icon for options. The main action stays near the bottom. Keep the original image for revisions.

Pick an appropriate region

For a flat logo color, choose an interior area rather than the edge or shadow. An antialiased border mixes colors, and a JPG can include compression variations even inside a seemingly flat patch. Sample several nearby positions manually if needed. The tool reports a single pixel, not a statistical average of a selected region.

Use source coordinates for repeatability

Numeric coordinates refer to the uploaded image, independent of workspace zoom. Arrow keys in the coordinate fields move one source pixel at a time. Fit gives context, while zoom helps you target a small detail. Record the coordinates together with the file version if another person needs to reproduce the sample.

Read alpha as well as the color code

The HEX and RGB values describe color channels; Alpha describes opacity. A partially transparent pixel’s displayed appearance also depends on the background behind it. Copying only HEX does not capture that transparency. If you need to match a composited appearance, inspect it on the intended background and document the opacity separately.

Check color expectations across applications

The sample comes from the browser-decoded raster image. It is not a print-production color measurement or a guarantee of matching every source color profile. Test the copied value in your destination and consider display differences. The JSON download records the selected sample; it is not a complete palette or a conversion to CMYK.

WORKED EXAMPLE

A practical example

Start with
A 400 × 240 graphic with a solid colored region in its center.
Try these settings
Sample an interior pixel and record its X/Y values, HEX, RGB and Alpha.
What to expect
The copied values describe that one decoded source pixel. They may differ from an edge or a transparent part of the graphic.

This example explains the workflow. It is not a recorded test or a guarantee about your file.

Check the downloaded result

  • Confirm the sample location is the intended interior pixel and read its alpha value.
  • Test the copied color in the destination and retain the source file version for repeatability.

Questions and troubleshooting

Why do nearby pixels have different colors?

Edges, shadows, textures and compression can vary their values. Sample a solid interior region when you want its base color.

Does HEX include the alpha value shown?

The displayed color code and the alpha readout are separate. Record opacity too if the sample is translucent.

Ready to try it?

Advertisement