Image color picking: pixel coordinates, HEX8 and alpha

Select precise pixels in scaled images, distinguish HEX from alpha-aware color, and copy CSS values with coordinates, touch or keyboard.

Content reviewed ·

The problem and context

Sampling an icon, screenshot or transparent PNG can mix up the pixel with its displayed background. Six-digit HEX contains RGB but no alpha. Calling a transparent pixel #000000 confuses transparency with black. Check the source position, channel values and alpha together.

Method and calculation

Pixel coordinates begin at 0,0 in the upper-left corner. Map a scaled pointer into the image content area, excluding borders and padding. Coordinate fields reach pixels that are hard to tap in a small preview, and arrow keys move one at a time. The copy format determines whether alpha is included.

Worked example

For RGBA 0,255,0,128, HEX8 is #00FF0080 and CSS is rgba(0, 255, 0, 0.501961). Automatic copy keeps alpha; six-digit HEX gives only #00FF00. Alpha zero is transparent and 255 is opaque. An alpha byte of 128 is not exactly 0.5.

Checklist

The checkerboard is a transparency backdrop, not part of the sampled image. Browser color conversion and semitransparent pixel quantization can affect values; hidden RGB in fully transparent pixels may be unrecoverable. SVG becomes raster and animation uses the default frame. Establish the real background before checking translucent-color contrast.

Image pixel color picker

Upload image

Drop an image here. A new file replaces the image and selected color.

Up to 64 MiB, 16384 pixels per side and 32 million pixels total. Browser-decodable formats include SVG, AVIF and ICO.

Reads browser-decoded sRGB canvas pixels. The checkerboard shows transparency and is not image data. SVG is rasterized and animation uses its default frame. Images stay on your device.

Use these tools with this article

  • Color Palette

    Generate six swatches from one base: original, lighter, darker, complement and two analogous colors at hue offsets of ±30°. Every swatch shows a six-digit HEX value with its own copy button.

  • Contrast Checker

    Choose six-digit HEX text and background colors, calculate relative luminance, and check AA and AAA thresholds for normal and large text.

  • Image Color Picker

    Select exact image pixels, read HEX, RGB and alpha-aware RGBA, then copy the color.

  • Color Converter

    Convert opaque sRGB colors between HEX, RGB, HSL and HSV, keep round-trip precision, and compare black and white text contrast.

Sources