Palette & Color Scheme Extractor
Upload any image, logo, or screenshot to automatically extract its dominant HEX and RGB color palette – securely in your browser.
Why Use This Tool?
Matching brand colors from a client’s logo, pulling UI inspiration from a website screenshot, or building a cohesive design palette from a photograph usually requires manual eyedropper sampling in heavy graphics software. Our free Palette & Color Scheme Extractor analyzes your image’s pixel data to generate a clean, diverse swatch palette with ready-to-use HEX, RGB and HSL values, and lets you click anywhere on the image to pick an exact color.
Click any color code to copy it straight to your clipboard, or export the whole palette as CSS, SCSS or Tailwind code. Because all color sampling runs locally inside your web browser using HTML5 Canvas, your unpublished mockups, screenshots, and brand assets never leave your device.
How to Use This Tool
4 Quick StepsUpload Your Image
Drag and drop a photo, logo, or screenshot, click to select it, or paste it with Ctrl+V.
Extract Color Swatches
The tool scans your image and builds a palette of its main colors. Choose 4 to 12 colors and how to sort them.
Copy HEX or RGB Code
Click any HEX (e.g., #2563EB), RGB or HSL code to copy it, or click the image to pick an exact color.
Export or Share
Copy the palette as CSS, SCSS or Tailwind code, download a palette image, or send it on WhatsApp.
Palette & Color Scheme Extractor
Get the main colours from any photo, logo or screenshot, with HEX, RGB and HSL codes and ready-made CSS.
JPG, PNG, WEBP, GIF or SVG. The image is read on your device and never uploaded.
Click a colour to copy its HEX code. The bar shows how much of the image each colour covers.
Found this useful?
Which Colour Code Should You Use?
Every colour in your palette is shown in three formats, and the whole palette can be exported as code. Here is where each one fits.
| Format | Example | Best For |
|---|---|---|
| HEX | #2563EB | Websites, CSS, design tools like Figma and Canva |
| RGB | rgb(37, 99, 235) | CSS, code, and screen design |
| HSL | hsl(221, 83%, 53%) | Making a colour lighter, darker or softer in CSS |
| CSS variables | --royal-blue: #2563eb; | Reusing the same colours across a whole website |
| Tailwind | 'royal-blue': '#2563eb' | Adding your brand colours to a Tailwind CSS project |
How to Use Your Palette: The 60-30-10 Rule
Designers often split a colour scheme into three roles so a page feels balanced instead of busy. Use the percentage under each swatch as a guide.
| Share | Role | How to Pick It |
|---|---|---|
| 60% | Main or background colour | Usually the lightest or most common colour in the palette |
| 30% | Secondary colour | Cards, sections, headers and larger shapes |
| 10% | Accent colour | Buttons, links and highlights, often the most vivid colour |
When to Extract a Colour Palette
A palette taken from a real image always looks natural together.
- Brand colours from a logo. Get the exact HEX codes of a client's logo for their website, social posts and documents.
- Web design inspiration. Pull a colour scheme from a website screenshot or a design you like.
- Photo-based palettes. Build a mood board or theme from a holiday photo, product shot or artwork.
- Matching colours. Match text, buttons and backgrounds to the colours in a hero image or banner.
- Presentations and documents. Give slides, reports and charts colours that fit your images.
- Social media graphics. Keep posts on brand by reusing the same colours every time.
Frequently Asked Questions
Quick answers to common questions about extracting colour palettes from images.
How do I get the colour palette from an image?
Drop your image into the Palette & Color Scheme Extractor, or paste it with Ctrl+V. The tool finds the main colours straight away and shows each one with its HEX, RGB and HSL code. Click any code to copy it.
How do I find the HEX code of a colour in an image?
Click the exact spot on your image. The tool reads the colour at that point, copies its HEX code to your clipboard, and adds it to your picked colours with a close colour name.
How many colours can I extract?
Choose 4, 5, 6, 8, 10 or 12 colours. If the image has fewer clearly different colours, such as a simple logo, the tool shows only the real ones instead of inventing extra shades.
What does the percentage under each colour mean?
It shows how much of the image each colour covers. The bar above the swatches shows the same thing visually, so you can see which colour is the main one and which are accents.
What does Prefer vivid colours do?
Photos often have large grey or white areas, such as sky or walls. Prefer vivid colours gives more weight to strong colours, so the palette focuses on the colours that stand out.
Can I use the palette in CSS or Tailwind?
Yes. The Export section turns your palette into CSS variables, SCSS variables, a Tailwind colours config, JSON or a simple HEX list. Copy the code or download it as a file.
How do I get brand colours from a logo?
Upload the logo, ideally as a PNG or SVG with a transparent background. Transparent areas are ignored, so you get only the logo colours. Click any part of the logo to pick an exact colour.
What is the difference between HEX, RGB and HSL?
They are three ways to write the same colour. HEX (#2563EB) is the most common on websites, RGB (rgb(37, 99, 235)) lists the red, green and blue amounts, and HSL (hsl(221, 83%, 53%)) describes hue, saturation and lightness, which is easy to adjust.
Can I save or share the palette?
Yes. Click Download palette image to save a PNG with every colour and its HEX code, or Send on WhatsApp to share it with a client or teammate.
Are the colour names exact?
The names are the closest common colour names, such as Teal or Salmon, to help you describe the palette. The HEX, RGB and HSL codes are always the exact values.
Is my image uploaded to a server?
No. All colour analysis runs locally in your browser, so your unpublished mockups, screenshots, and brand assets never leave your device. The tool is free, with no sign-up.
Related Free Tools
These free tools work well alongside the Color Palette Extractor. Like this one, they all run privately in your browser.