Image Color Picker

Sample exact pixel colors from any image using a 9×9 pixel loupe magnifier. Extract HEX, RGB, HSL, and CMYK color codes, inspect dominant palettes, and copy with 1 click.

Pick colors directly from your images with pixel-perfect accuracy. Interactive cursor loupe/magnifier, instant HEX, RGB, HSL, and CMYK readouts, color swatch history, and automated 6-color dominant palette extraction. Runs 100% locally in your browser.

Drop image here or click to browse

Supports JPEG, PNG, WebP, GIF, and BMP images up to 20 MB.

How to use Image Color Picker

Inspect and extract exact color values from photos, website UI mockups, brand logos, and digital artwork with sub-pixel precision. Our client-side color eyedropper features a real-time 9×9 pixel loupe magnifier with a centered red crosshair, allowing you to sample single pixels without struggling with erratic mouse alignment. Get instantaneous readouts across standard color models—including HEX (#RRGGBB), RGB (0–255), HSL (hue, saturation, lightness), and print-ready CMYK (cyan, magenta, yellow, key black). The tool also automatically computes a 6-swatch dominant color palette of the uploaded image and maintains a 12-item historical swatch tray for seamless palette curation.

  1. Upload any JPEG, PNG, WebP, GIF, or SVG image from your computer or phone.
  2. Hover or drag your cursor across the image canvas to activate the 9×9 pixel loupe magnifier.
  3. Click or tap on any pixel to lock its color values into the inspector.
  4. View real-time values for HEX, RGB, HSL, and CMYK color spaces.
  5. Click the 'Copy' button beside any color code to copy the string directly to your clipboard.
  6. Explore the automatically generated 6-color dominant palette below the canvas, or click any swatch from your 12-color sample history to re-inspect it.

Canvas Pixel Buffer Sampling, Color Space Math & 5-Bit Quantization

The color picker renders the source image into an in-memory canvas matching its intrinsic dimensions. When a mouse or touch coordinate (x, y) is received, the tool scales the coordinate relative to the CSS display box to compute integer bitmap indices. It calls `ctx.getImageData(px - 4, py - 4, 9, 9)` to extract the surrounding 81-pixel neighborhood for the 9×9 loupe grid. Color conversions use standardized formulas: HEX via two-digit hexadecimal byte strings; HSL via chromatic delta calculations; and CMYK via standard subtractive black-key separation. For dominant palette generation, the algorithm samples up to 10,000 spatial pixels with a dynamic stride, quantizes RGB channels to 5 bits (32 levels per channel, 32,768 discrete color bins), aggregates frequencies in a hash map, and sorts the top clusters to extract a clean, representative 6-swatch palette.

  • 9×9 pixel loupe: Center crosshair loupe eliminates hand tremor and misaligned pixel sampling.
  • Multi-model color readout: Instant values for HEX (#RRGGBB), RGB (0–255), HSL, and CMYK (0%–100%).
  • 1-click clipboard copy: Copy individual color codes formatted cleanly for CSS, Figma, or Photoshop.
  • Dominant palette extraction: Fast spatial 5-bit color quantization extracts 6 primary palette colors with percentage shares.
  • 12-swatch history tray: Automatically saves recently clicked colors for instant recall during design workflows.

All pixel processing, color space conversions, and image compression execute entirely inside your local web browser. No files, pixels, or document metadata are ever uploaded to any external server or saved in cloud storage.

Practical examples

Extracting Brand Colors from Vector Logo PNG

Input
Corporate tech logo sampled at primary blue icon header.
Result
HEX: #0D6EFD | RGB: (13, 110, 253) | HSL: (216°, 98%, 52%) | CMYK: (95%, 57%, 0%, 1%).

Enables frontend developers to match digital stylesheets and print designers to configure spot colors with zero guesswork.

Matching Paint Tones from Interior Design Photo

Input
Photograph of Scandinavian oak living room wall sampled at mid-tone reflection.
Result
HEX: #D4A373 | RGB: (212, 163, 115) | HSL: (30°, 52%, 64%) | CMYK: (0%, 23%, 46%, 17%).

Provides homeowners and architects with exact numerical color formulas to find matching Benjamin Moore or Sherwin-Williams swatches.

Website UI Contrast & Accessibility Auditing

Input
Button element sampled from web mockup: text (#FFFFFF) on button background (#4A90E2).
Result
Color codes sampled for immediate WCAG 2.1 contrast ratio calculation (3.5:1 ratio identified for compliance remediation).

Allows UX designers to verify that call-to-action buttons satisfy accessible contrast requirements before pushing code.

Color Palette Generation for Brand Identity

Input
Sunset landscape photography uploaded to dominant color palette analyzer.
Result
Extracted 6-color dominant palette: Deep Violet (#2E1F47), Amber Gold (#FFA400), Coral Pink (#FF6B6B), and complementary earth tones.

Extracts balanced, naturally harmonious color schemes for web branding, digital marketing campaigns, and presentation decks.

Frequently asked questions

How accurate is the 9×9 pixel loupe magnifier?

The loupe extracts actual raw RGBA bytes directly from the canvas image buffer using `getImageData`. It displays an exact 9×9 neighborhood of real physical pixels centered on your cursor coordinates, ensuring that subtle anti-aliasing, JPEG compression artifacts, and micro-gradients are clearly visible before you sample.

How is CMYK calculated, and can I use it directly for commercial offset printing?

Our tool calculates CMYK using the standard subtractive color model from 24-bit RGB ($K = 1 - \max(R', G', B')$, $C = \frac{1 - R' - K}{1 - K}$, etc.). While ideal for digital print proofing and general ink specifications, high-end commercial prepress printing also relies on specific ICC color profiles (such as SWOP, GRACoL, or FOGRA39) to compensate for paper dot gain.

Why does the sampled color look slightly different from what I see on my screen?

Operating system display color management (e.g. macOS Display P3 vs. Windows sRGB) can slightly influence monitor rendering. Our tool reads the raw decoded sRGB byte values of the image file itself, which represents the true mathematical color stored in the file.

Can I sample colors from transparent or semi-transparent pixels?

Yes. If you sample a pixel with partial transparency, the loupe and color inspector display the color composited over the underlying canvas. For fully transparent pixels ($A = 0$), the tool indicates transparency and reports default white background baseline.

Are my uploaded photos or graphics sent to an external server?

No. The entire image decoding, mouse event tracking, pixel loupe extraction, and dominant color quantization run completely client-side in your browser. No image data or coordinates are transmitted across the internet.

Related tools

Available

Adjust Image

Fine-tune photo brightness, contrast, saturation, exposure (-2 to +2 EV), and hue rotation in your browser. Real-time split comparison and lossless export.

Image Tools
Available

Grayscale Image Converter

Convert color photos and graphics to black and white grayscale online using ITU-R BT.601 luma weighting. Adjust intensity from 0% to 100% and export PNG, JPEG, or WebP.

Image Tools