SwiftGrab
Ad Slot — Header Banner
Eyedropper + Auto Palette · 100% Private

Image Color Palette & HEX Extractor

Upload any photo to extract its dominant color palette and pick precise HEX, RGB, or HSL values with an interactive eyedropper. Copy individual codes, or download the whole palette as CSS variables. Everything runs instantly — no uploads.

#HEX#RGB#HSL#Palette#CSS#Eyedropper

Drop an image or click to browse

PNG, JPG, WebP, AVIF, GIF · Single file · Analyzed instantly

Upload an image to extract its palette

PNG, JPG, WebP, AVIF, or GIF. The eyedropper gives pixel-level precision; the palette shows the 6 most dominant colors.

Ad Slot — Below the Fold

How to extract colors from an image in 3 steps

Dominant palette + pixel-level eyedropper.

1

Upload your image

Drop a PNG, JPG, WebP, AVIF, or GIF. The tool downsamples it internally for speed, then runs a median-cut quantizer to find the 6 most dominant colors.

2

Pick specific pixels

Hover over the image to activate the magnifier loupe. It zooms in 12× so you can target individual pixels. Click any point to lock that color in the picked-color card.

3

Copy codes or export CSS

Each swatch shows HEX, RGB, and HSL — click any row to copy. Use the Copy CSS button to grab :root variables for pasting into a stylesheet, or Download CSS for a .css file.

Frequently Asked Questions

It uses median-cut quantization — a classic algorithm that recursively splits the color space along its longest axis at the median, then averages each resulting region. This produces a palette that reflects the image's actual color distribution better than naive histogram sampling.

About the Image Color Palette & HEX Extractor

Everything you need to know

Why extract palettes from images?

Designers, developers, and marketers frequently need to match colors from a brand asset, a photograph, or a competitor's UI. Manual color picking is tedious and error-prone. This tool automates the discovery of dominant colors and provides pixel-level sampling for precision work — all in one interface. Use it to build a design system from a mood board, extract brand colors from a logo, or pull a coherent palette from a landscape photo.

Understanding the color formats

HEX is the standard for web and design tools — six hexadecimal digits representing red, green, and blue (e.g. #FF5733). RGB expresses the same values as decimal triplets (255, 87, 51) — better for programmatic use. HSL describes hue, saturation, and lightness in human-readable terms (11°, 100%, 60%) — better for constructing variations like 'darker by 20%' or 'more saturated'. Each swatch shows all three, and any row is one click to copy.

Median-cut quantization explained

Median-cut is a classic algorithm from 1980 that reduces millions of colors to a small representative set. It works by repeatedly dividing the color space along its longest dimension, splitting pixels at the median value. After N splits you have N regions; the average of each region becomes a palette color. This produces perceptually balanced palettes — unlike naive k-means, which can get stuck in local minima, or histogram approaches, which favor visually-similar clusters.

Privacy, performance, and browser support

Everything runs on your device — your image never leaves your browser. Palette extraction on a typical 4MP photo takes 100–300ms. The eyedropper reads directly from the in-memory pixel buffer with no perceptible latency. The tool works in every modern browser (Chrome, Firefox, Safari, Edge) and remains functional offline after first load.

More tools you'll love

Handpicked utilities that pair well with this one