Image color picker
Drop, paste or upload a photo. Palg finds its dominant colors, then lets you drag each picker to the exact pixel you want. The image never leaves your device.
Drag an image here, paste with Ctrl/⌘+V, or
Try a sample photo
How to use it
- Upload an image, drag it onto the box, paste it from the clipboard, or click one of the sample photos.
- Choose how many colors to extract (5–10).
- Drag the round pickers on the image to sample a different spot; the palette updates live.
- Copy colors, save the palette, export it or open it in the generator.
How extraction works
Palg shrinks the image to about 120 pixels on its long side, converts every pixel to CIELAB, and runs k-means clustering with k-means++ seeding. Clustering in Lab instead of RGB groups colors the way people perceive them, so a sky does not get split into three nearly identical blues while a small red accent disappears. The seed is fixed, so the same image always yields the same palette.
Each cluster’s average becomes a swatch, ordered by how much of the image it covers. Pickers are then placed on the pixel closest to each swatch, which gives you a starting point you can drag anywhere.
Tips for better palettes
Crop out large areas of sky or wall first if you want the subject’s colors. Ask for more colors than you need and delete the near-duplicates in the generator. For brand work, sample the product, not the background. Then run the result through the contrast checker — photo palettes are often beautiful but low in contrast.
Privacy
The file is read with the browser’s own APIs and drawn to a canvas on your device. No upload happens, which is also why it works offline once Palg is installed.
FAQ
- Is my photo uploaded anywhere?
- No. The image is processed in your browser and discarded when you leave the page.
- Which file types work?
- Anything your browser can display: JPEG, PNG, WebP, GIF, AVIF and, in Safari, HEIC.
- Why does the palette differ from other tools?
- Tools use different clustering methods and color spaces. Palg clusters in CIELAB, which tracks perception more closely than RGB.
- Where are the sample photos from?
- They are Unsplash photos used under the Unsplash License; photographers are credited under each sample and on the credits page.
More Palg tools
- Palette generator — Press Space for a new palette, lock what you like, keep going.
- Explore palettes — 600+ hand-tuned palettes by mood, season, industry and era.
- Contrast checker — WCAG 2.2 AA/AAA ratios, fixes that pass, APCA as a second opinion.
- Color blindness simulator — See palettes and images through seven types of color vision.
- Template previews — Your palette on a landing page, app, dashboard, poster and more.
- Gradient maker — Linear, radial and conic gradients with OKLCH interpolation.
- Palette collage — Lay out swatches and a photo, export a PNG mood card.
- Color variations — Tints, shades, tones and a Tailwind-style 50–950 scale.
- Color Assistant — Describe a mood or brand; get three rule-based palettes with reasons.
- Your library — Saved palettes and gradients in collections, stored on this device.
Background reading: color guides · 1,000 named colors · install Palg as an app