Home
Eyedropper & Palette Extractor

Image Eyedropper & Dominant Color Palette Extractor

Upload any image to pick exact pixel colors with loupe magnification, automatically generate harmonious dominant color palettes, and copy HEX, RGB, HSL, or CSS codes.

Sample Image
100%

No Image Loaded

Drag and drop an image file, click to upload, or load one of our presets.

Hover or slide finger on image for optical loupe magnifier; click/tap to pick.Supports Ctrl+V / Cmd+V for image or SVG clipboard paste!

Dominant Color Palette

Auto Extracted
Upload an image to extract dominant colors

Selected Color

Luminance: 0.235Light Tone
#3B82F6
Direct PickWCAG: Pass Black
Color Formats
HEX#3B82F6
RGBrgb(59, 130, 246)
HSLhsl(217, 91%, 60%)
HSVhsv(217, 76%, 96%)
CMYKcmyk(76%, 47%, 0%, 4%)
WCAG Accessibility Contrast
White Text
3.68:1FAIL
Black Text
5.71:1AA PASS

Color Harmonies

Calculated HSL
Complementary (180°)#F6AF3C
Analogous (±30°)
Tints & Shades

Recent Swatches

Click pixels on the image to build your custom palette history.

Automatic K-Means Color Quantization

Clusters image pixel color distributions into harmonious dominant color schemes instantly.

Sub-Pixel Loupe Accuracy

Magnifies canvas pixels with a targeting reticle for exact single-pixel sampling.

Zero Server Uploads

All image rendering and color histogram extractions execute in HTML5 Canvas memory locally.

Formula & Reference Guide

Image Color Extraction & Eyedropper Technical Guide

Color spaces, pixel sampling algorithms, and color quantization methods for extracting palettes from digital images.

Image Color Extraction & Eyedropper Technical Guide — Client-Side Calculation Flow & Methodology
Image Color Extraction & Eyedropper Technical Guide — Client-Side Calculation Flow & Methodology

Key Parameters & Controls

Key Parameters & Controls
ParameterType / UnitDescriptionDefault
hexCodestring (e.g. #3B82F6)Standard hexadecimal RGB color notation.—
rgbChannels{ r: 0-255, g: 0-255, b: 0-255 }Discrete Red, Green, and Blue 8-bit color channel values.—
hslValues{ h: 0-360, s: 0-100%, l: 0-100% }Cylindrical Hue, Saturation, and Lightness color space representation.—
colorQuantization'k-means' | 'median-cut'Statistical algorithm used to reduce millions of image colors into a dominant 5-color palette.—

Pro Tips & Best Practices

When sampling colors from photos, use

When sampling colors from photos, use the loupe reticle to avoid anti-aliased edge boundary pixels that blend with backgrounds.

Dominant color palettes extracted

Dominant color palettes extracted from nature photography typically feature balanced contrast suitable for UI theme generation.

Copy the HSL values to easily

Copy the HSL values to easily generate tinted monochromatic shades by tweaking only the Lightness (L) parameter.

Common Gotchas & Troubleshooting

⚠️Eyedropper selects incorrect tint on transparent PNGs

Transparent areas default to canvas background color; ensure sampling occurs on opaque graphic elements.

⚠️Image fails to render in canvas

Verify the image file is not corrupted and is in a standard format (PNG, JPEG, WebP, SVG, AVIF).

Frequently Asked Questions

How does the image color picker extract colors?▼

It loads the image into an in-memory HTML5 Canvas element and reads pixel RGBA values using the `ctx.getImageData()` API.

How is the dominant color palette generated?▼

By applying color quantization algorithms (like K-Means or Median Cut) to sample and cluster thousands of pixels into the most frequent color centroids.

Can I extract colors from SVG vector graphics?▼

Yes, modern browsers render SVG vectors directly onto the Canvas context, allowing full pixel inspection.

Are uploaded design images uploaded to the cloud?▼

Never. All canvas operations execute strictly in your local browser session. No image bytes leave your machine.