Pro Color Extractor
100% Client-Side Image Palette & Eyedropper Studio

Extract color palettes from any image.

Drop an image, paste a screenshot, or inspect a built-in specimen to extract dominant colors with dominance %, WCAG 2.1 contrast scores, pixel-level eyedropper picking, OKLCH conversion, and Tailwind v4 @theme tokens.

Drop an image here, browse files, or press Ctrl+V

PNG, JPG, WEBP, GIF, SVG · Max 10 MB · Processed locally

How Dominant Color Extraction Works

Instead of sending your assets to external APIs, Pro Color Extractor implements deterministic color quantization directly inside an offscreen HTML5 Canvas.

01 / SAMPLING

Alpha & Neutral Filtering

Pixels are sampled up to 16,000 points across the frame. Transparent regions (α < 128) and pure crushed blacks or blown highlights are filtered unless the image is monochrome.

02 / QUANTIZATION

Modified Median Cut

Color space boxes recursively partition along the widest R, G, or B channel range at clean value boundaries, preserving crisp flat colors as well as photographic gradients.

03 / MERGE & AUDIT

Euclidean Deduplication & WCAG

Clusters within 22 Euclidean RGB units merge weight-proportionally to compute real dominance %, then convert to OKLCH and test WCAG 2.1 contrast against white and black.

HEX, RGB, HSL vs OKLCH Color Formats

Choose the right color model for your design tokens, Figma libraries, or production stylesheets.

Format Example Syntax Strength Best Used For
HEX #0F766E Compact 6-character sRGB literal Brand guidelines, Figma swatches, Tailwind v3 configs
RGB rgb(15, 118, 110) Direct 8-bit hardware channel values Canvas/WebGL shaders, legacy programmatic interpolation
HSL hsl(175, 77%, 26%) Intuitive hue degree and saturation intuition Quick hue shifts (caution: uneven perceived brightness)
OKLCH oklch(0.509 0.088 183) Perceptually uniform lightness across all hues Tailwind CSS v4 @theme, accessible color scales, W3C tokens

Frequently Asked Questions

Answers about offline privacy, pixel eyedropper picking, WCAG contrast ratios, and token exports.

How does Pro Color Extractor find dominant colors without uploading my image?
All pixel analysis runs locally inside your browser using the HTML5 Canvas 2D API and Modified Median Cut quantization. Your images never leave your device.
Can I pick an exact HEX or OKLCH color from a specific pixel in my image?
Yes. Hover anywhere over the loaded preview canvas to inspect exact pixel coordinates and HEX readout, click to copy immediately, and press + Add Swatch to pin it to your palette.
Why export OKLCH and Tailwind v4 @theme instead of HEX alone?
OKLCH encodes perceptual lightness directly, so two colors at equal lightness have consistent visual weight — ideal for modern Tailwind v4 @theme blocks and accessible UI tokens.
How is the WCAG 2.1 contrast score calculated for each swatch?
Each swatch evaluates sRGB relative luminance against pure white (#FFFFFF) and black (#000000), showing exact ratios and AA (4.5:1) or AAA (7.0:1) compliance badges.
What image formats and file sizes are supported?
PNG, JPG, JPEG, WEBP, GIF, BMP, and SVG up to 10 MB — via file upload, drag-and-drop, clipboard paste (Ctrl+V), or CORS-enabled HTTPS image URLs.
Are extracted palettes free for commercial projects?
Yes. Extracted color codes and exported CSS/JSON/PNG assets are completely free for personal and commercial design systems with zero signup or watermarks.