Tool guides and practical topics/Images, files and local processingImage color picking: pixel coordinates, HEX8 and alphaSelect precise pixels in scaled images, distinguish HEX from alpha-aware color, and copy CSS values with coordinates, touch or keyboard.Content reviewed · 2026-11-16The problem and contextSampling 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 calculationPixel 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 exampleFor 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.ChecklistThe 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 pickerUpload imageChoose an image fileDrop 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.ClearImage sampling areaMove the mouse to preview; click or tap to sample and copy. Focus the image for arrow keys, Shift for ten pixels, Home/End for row edges and Ctrl or Cmd for image corners. Enter or Space copies. Coordinates start at zero.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 articleColor PaletteGenerate 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 CheckerChoose six-digit HEX text and background colors, calculate relative luminance, and check AA and AAA thresholds for normal and large text.Image Color PickerSelect exact image pixels, read HEX, RGB and alpha-aware RGBA, then copy the color.Color ConverterConvert opaque sRGB colors between HEX, RGB, HSL and HSV, keep round-trip precision, and compare black and white text contrast.Sourceshtml.spec.whatwg.org · 1www.w3.org · 2www.w3.org · 3