Image Color Picker

Sample any pixel's colour by coordinates — hex and rgb values with a swatch preview, read directly from the canvas pixels.

Image Tools Runs in your browser · no upload

Reviewed 17 November 2026 · Free · No account needed

ExecutionYour browserInput never leaves your tab
File retentionNoneNothing is stored
AccountNot requiredNo sign-up, no paywall
PriceFreeNo trial, no usage cap on the tool itself

How to use

  1. Choose the image file.
  2. Enter the pixel coordinates (x, y).
  3. Sample the pixel and copy the hex or rgb value.

Example

Input: Pixel at (512, 256)

Output: #4f46e5 · rgb(79, 70, 229) · swatch preview

How it works

Clicking the image reads the pixel under the cursor from the canvas and reports its colour as HEX, RGB and HSL values.

The image is drawn to a canvas once; entering coordinates reads that pixel straight out of the canvas ImageData (index = (y × width + x) × 4) and reports it as a #rrggbb hex and an rgb() string with a swatch preview.

Worked example

Pixel at (512, 256) on a 1024×512 image → #4f46e5 · rgb(79, 70, 229) with a swatch preview.

Edge cases to know

  • Coordinates are 0-based from the top-left corner; the default sample point is the image's centre.
  • Sampling is by coordinates rather than click-to-pick — precise and accessibility-friendly.
  • A coordinate outside the image is rejected with 'Pixel is outside the image'.
  • The alpha channel is read but only the red, green and blue values are reported.

Limits & compatibility

  • Coordinate entry rather than click-to-pick — precise and accessibility-friendly.
  • Values are the flattened canvas pixels (white behind transparency).
  • Coordinates are 0-based from the top-left corner.

Privacy

Sampling happens on a canvas in your browser. The file is never uploaded or stored.

Related tools

FAQ

Questions about Image Color Picker

How do I pick a colour from my image?

By coordinates: enter the pixel's x and y position and the tool reads that exact pixel from the canvas. Coordinates are zero-based, counting from the top-left corner. It is a deliberate contrast to click-to-pick tools — precise, and friendlier for keyboard and screen-reader users.

What values does it give me?

Two equivalent readings of the sampled pixel: a hex code such as #4f46e5 and an rgb() triple such as rgb(79, 70, 229), plus a swatch preview so you can eyeball the colour. Either value copies straight into CSS, design tools or code.

Why does a transparent pixel show as white?

The colour is read from the flattened canvas, which composites transparency over a white background before sampling. You get the colour the pixel looks like on white, not the raw RGBA value with its alpha channel. Keep that in mind when sampling logos or icons with transparent regions.

Is my image uploaded when sampling?

No. Sampling happens on a canvas inside your browser, and the file is never uploaded, stored or logged. Because picking often happens on unreleased designs or personal photos, that local-only behaviour is the main reason to use a canvas-based picker in the first place.