Image Color Palette Extractor
Upload any image and instantly get its dominant colors with HEX, RGB and HSL values.
- Runs in your browser — nothing uploaded
- Instant, no waiting in a queue
- Free, no watermark, no daily limits
Drop in a photo, logo, illustration or screenshot and ToolzBank clusters its pixels to find the 2 to 12 colors that cover the most of the image, sorted by how much of it each one covers. Click a swatch to copy its HEX code, click the image to pick any exact pixel, and export the palette as CSS variables, SCSS, Tailwind config, JSON or a PNG.
How to Extract a Color Palette from an Image
- 1
Upload an image
Drop an image onto the page, click to choose one, or paste it with Ctrl/⌘ + V.
- 2
Choose how many colors
Use the slider to extract between 2 and 12 dominant colors.
- 3
Copy or export
Click any swatch to copy its HEX code, or export the palette as CSS, SCSS, Tailwind, JSON or PNG.
Why use ToolzBank Color Palette Extractor?
- Extract 2 to 12 dominant colors automatically
- HEX, RGB and HSL values for every swatch
- Eyedropper: click the image to pick an exact color
- Export to CSS variables, SCSS, Tailwind or JSON
- Download the palette as a PNG
- Runs entirely in your browser
Frequently asked questions
How do I get the HEX code of a color in an image?
How are the dominant colors chosen?
Can I use the palette in my CSS or Tailwind project?
Is my image uploaded?
More free image tools
Compress Image
Shrink JPG, PNG or WebP with a quality slider
Resize Image
Exact pixels or social media sizes
Crop Image
Free crop or 1:1, 4:3, 16:9 and 3:2
Rotate & Flip Image
Rotate, mirror or skew a photo
Photo Filters & Adjustments
Filters, brightness, contrast, blur and sharpen
Enhance Photo
Auto enhance, denoise and red-eye fix
Add Text & Frames to Image
Captions, text and photo frames
Image to SVG
Trace a logo or icon into a vector
Compress Image to KB
Hit an exact file size like 50 KB or 200 KB
Bulk Image Resizer
Resize & compress many images at once
Image Converter (WebP, AVIF)
Convert to WebP, AVIF, JPEG or PNG and shrink files
AI Background Remover
Transparent or white background with AI
Passport Photo Maker
2x2 in, 35x45 mm & print sheets
AI Image Upscaler
Enlarge images 2x or 4x with AI
Magic Eraser
Remove objects from photos with AI
Image to Base64
Data URI, CSS, HTML, JS, JSON or XML from any image
