Pull the main colors from a photo, assign primary, secondary, accent and neutral roles, and get shade scales, text contrast and CSS, Tailwind or token exports.
Drag an image here or click to upload
Supports PNG, JPG, WEBP
Images never leave this browser. You can also paste with Ctrl+V.
Extraction mode
Number of colors
6
The screen eyedropper only works in Chrome and Edge (not Safari or Firefox)
Palette
Upload an image or use the eyedropper and the palette will appear here.
Related searches
Color Palette Extractor
website color palette extractor
Color Palette Extractor free
Color Palette Extractor online
What is Color Palette Extractor?
Pulls the main colors out of an image and builds a palette. Handy for choosing colors for logos, thumbnails and design drafts.
How to use
1
Upload an image.
2
Check the extracted colors.
3
Tap a color code (HEX and so on) to copy it.
Tips
If the background is a single color, most of the palette ends up being that background color. Crop to just the part you want and upload that, and you'll get far more useful colors.
The extracted colors simply represent the image; they aren't guaranteed to work well together. Before using them in a design, always check that the contrast between text and background is high enough.
The image you upload is not sent to a server. It is processed only in your browser.
Frequently asked questions
QHow do I extract colors from a photo?
Upload an image and the tool picks the most-used representative colors and shows them as a palette; you can copy the HEX code for each color.
QIs the uploaded photo sent to a server?
No. Color extraction happens only inside this browser, and the photo is not sent anywhere.
Learn more
1How colors are extracted from an image
It groups the many colors in a photo into similar ones and picks the representative colors that are used most. So the simpler the photo, the clearer the result, and a photo with complicated colors may give averaged colors.
2How to use the extracted colors in a design
It looks balanced when you divide the roles: the widest-used main color, an accent color and a background color. You can copy the HEX and RGB codes and paste them straight into a design tool or CSS, and when using one as a text color, check that its contrast with the background is sufficient.
3How do HEX, RGB and HSL differ for a picked color?
All three write the same color in different ways. HEX is the web-standard notation that writes red, green and blue in hexadecimal like #RRGGBB, and RGB writes the same values as three numbers from 0 to 255. HSL uses hue, saturation and lightness, which makes tweaks like "a bit lighter" or "a bit less vivid" easy.
Design tools and code use HEX most often, and HSL is handy in CSS when you want lighter or darker versions of the same color. The color you see is the same in any notation, so copy whichever suits where you'll use it.
4Using them as a palette: the 60-30-10 rule
If you use the picked colors in equal amounts, the result feels busy. Splitting them roughly into 60% background, 30% secondary color and 10% accent color keeps it stable. Use the widest color in the image for backgrounds and surfaces, and the small but eye-catching colors for accents such as buttons, links and icons.
Mixing in one neutral color (white, gray or a very pale tone) makes things look tidier. If all the picked colors are vivid, lighten or deepen some of them so there is a difference in brightness.
5Checking contrast between text and background
Even a pretty color is unusable if the text can't be read. The web accessibility standard (WCAG) recommends a contrast ratio of at least 4.5:1 between body text and background, and at least 3:1 for large text. Combinations with similar brightness, like white text on a light yellow background, have low contrast and should be avoided.
When you use a picked color as a background, choose black or white for the text, whichever reads better. Entering the two colors in a contrast checking tool shows right away whether they pass. You can freely take color references from a photo, but it's best to avoid uses that copy a specific brand's logo colors in a way that could cause confusion.
6How do I pull color codes from a photo?
Upload a photo or paste it with Ctrl+V, and the main colors are extracted automatically so you can copy HEX codes right away.
Click a color card to copy its code, and the lightness steps below also change to match that color. If a color you like is missing, use the eyedropper button to pick any point on the photo and add it to the palette.
If you have no photo, you can try the sample photo first to get used to the layout.
The eyedropper may not be supported depending on the browser. In that case, use the automatic extraction result.
7How do most-used, vivid and muted colors differ?
Even with the same photo, the palette changes completely depending on the criterion used for extraction.
Switch between the three modes and choose the one that suits where you will use it.
Most used
Selection criterion
In order of share of the photo
Good for
Background colors, designs that match the overall mood
Vivid
Selection criterion
In order of high saturation
Good for
Buttons, emphasis elements, accent colors
Muted
Selection criterion
Low saturation and subdued tone
Good for
Body backgrounds, cards, document design
Mode
Selection criterion
Good for
Most used
In order of share of the photo
Background colors, designs that match the overall mood
Vivid
In order of high saturation
Buttons, emphasis elements, accent colors
Muted
Low saturation and subdued tone
Body backgrounds, cards, document design
8How many colors should I extract?
This tool lets you adjust from 5 to 8, and starting with 5 to 6 is easiest to work with.
The more colors there are, the more similar colors overlap, which actually makes it harder to pick the ones you will use. For web design, one main color, one secondary color, one accent color and two neutrals for background and text are enough in most cases.
Changing the number recalculates from the same photo.
9How are the main, secondary and accent colors divided?
Extracted colors are shown divided by role into a main color, secondary color, accent color, light neutral and dark neutral.
Main color: represents the brand image. Use it for the logo, header and primary buttons.
Secondary color: supports the main color. Use it for card backgrounds, lines and supporting elements.
Accent color: the color that has to stand out. Use it sparingly for notifications, sale marks and buttons that encourage clicking.
Light neutral: a very pale color for backgrounds or dividers.
Dark neutral: a deep color for body text. It is easier on the eyes than pure black.
If the photo has no neutral colors, recommended colors generated from the main color are used instead.
10What are the lightness steps 50 to 900 used for?
For a single color, it creates 10 steps from the lightest (50) to the darkest (900).
When setting colors by state, such as a button's base color, hover and active, you can choose within the same family, which creates consistency. Light steps suit backgrounds and notification boxes, and dark steps suit text and borders.
Click a step to copy its code. If your project uses Tailwind, this number system carries over directly, which is convenient.
11How do I export the extracted palette as code?
Press the export button at the top right to choose from CSS variables, Tailwind, design token JSON or a PNG card.
CSS Variables
When to use
To paste directly as variables in plain CSS or any framework
Tailwind v4 (@theme)
When to use
To put into the CSS config file of Tailwind 4
Tailwind v3 Config
When to use
To add colors to the config file of Tailwind 3
Design Tokens JSON
When to use
To pass to design tools or token conversion tools
PNG Swatch Card
When to use
To share the color scheme with your team as an image or put it in a presentation
Format
When to use
CSS Variables
To paste directly as variables in plain CSS or any framework
Tailwind v4 (@theme)
To put into the CSS config file of Tailwind 4
Tailwind v3 Config
To add colors to the config file of Tailwind 3
Design Tokens JSON
To pass to design tools or token conversion tools
PNG Swatch Card
To share the color scheme with your team as an image or put it in a presentation
12Why is color vision deficiency simulation needed?
You can check in advance how people who have difficulty distinguishing colors see your palette, which prevents the mistake of conveying meaning with color alone.
Besides normal color vision, you can choose red-weak (protanopia), green-weak (deuteranopia) or blue-weak (tritanopia) deficiencies to see how the palette looks. A screen that separates success and failure only by red and green cannot be told apart by some users.
If some combinations look similar, use a large brightness difference or add meaning with icons or text. This simulation is for reference, and how it looks differs from person to person.
13Why do the extracted colors feel different from the photo?
Representative colors are found by averaging the whole photo or grouping into clusters, so they can differ from the colors that impressed you visually.
If the background is wide, the background color is extracted first. Cropping to just the subject gives more useful colors.
Mixed shadows and highlights create muddy midtones. Try switching to the vivid mode.
JPG compression can bleed colors near edges and mix in odd colors.
The same code can look different depending on screen brightness and color calibration.
14Are on-screen colors and printed colors the same?
No. A screen is RGB, which mixes light, and print is CMYK, which mixes ink, so printing the same HEX code as it is gives a different color.
Vivid blues and greens that are close to fluorescent in particular often come out much duller in print. For printed material, it is safer to check again with the color swatches or profile used by the print shop.
For colors used on web and app screens, you can use this tool's HEX codes as they are.
15Can I use colors taken from a brand logo or someone else's image?
The color code itself can be used as a reference, but using the exact colors of a widely known brand can cause confusion.
Rather than using colors extracted from another company's logo or product photo as your brand's signature colors, it is better to take only the mood as a reference and change the saturation or lightness a little to make your own color.
When using the original photo, check copyright and terms of use separately. This tool does not send uploaded images to a server and processes them only inside the browser.
16Which extraction mode suits which photo?
Choosing the mode by the nature of the photo gives usable colors much faster.
There is no single right answer, so switch between the three modes and choose the one you like most. Changing the mode recalculates immediately from the same photo.
Landscape, sunset, sea
Recommended mode
Most used
Reason
Captures the mood of sky and land as it is
Products, food, fashion
Recommended mode
Vivid
Reason
Eye-catching accent colors come first
Portraits, film-style photos
Recommended mode
Muted
Reason
Soft colors that suit skin tone and background come out
Illustrations, posters
Recommended mode
Vivid
Reason
The intended main colors come alive
Photo type
Recommended mode
Reason
Landscape, sunset, sea
Most used
Captures the mood of sky and land as it is
Products, food, fashion
Vivid
Eye-catching accent colors come first
Portraits, film-style photos
Muted
Soft colors that suit skin tone and background come out
Illustrations, posters
Vivid
The intended main colors come alive
17Is there an order for applying a palette to a website?
Deciding roles first in the order of background, text, buttons and state colors shortens the time it takes to choose colors.
Use a light neutral for the background and a dark neutral for text.
Use the main color for primary buttons and links.
Use the secondary color for card backgrounds, lines and icons to support the main color.
Use the accent color in only one or two places on a screen to draw the eye.
Do not extract success, warning and error colors from the photo; decide them separately.
The more colors used on one screen, the more distracting it looks. Fix the main color to one.
18Do I also extract state colors such as success, warning and error from a photo?
It is better to set state colors separately in green, yellow and red families, apart from the photo palette.
Users must understand the meaning of colors intuitively, so familiar colors work better than colors matched to the photo's mood. It does not look out of place if you match saturation and brightness to the palette.
Do not convey meaning by color alone; use icons or text too. You can check with the color vision simulation above whether they can be told apart.
19How do I create colors for dark mode?
Reversing the lightness steps of the same color keeps light mode and dark mode colors consistent.
For example, if you used step 700 for text in light mode, use steps 200 to 300 in dark mode, and for the background use a dark color near step 900 instead of step 50.
Pure black and white have too much contrast and tire the eyes. Soft colors near the darkest and lightest steps are more comfortable.
20Is a large photo okay, and how should I upload it?
You can upload large photos, but very large ones can take longer to process, so a moderate size is convenient.
Color extraction does not need high resolution. For screenshots or camera originals, cropping to the part you need gives colors that better match your intent.
There are three ways to upload: drag and drop, click to select, and paste with Ctrl+V. Capturing the screen and pasting right away is the fastest.
21How do I move extracted colors into a design tool or document?
Click a color card to copy its HEX code and paste it into the color input field of the tool you use.
If you need a file instead of codes, get the PNG swatch card from export and attach it to a presentation or messenger. When handing off to a developer, sending CSS variables or token JSON as well means they do not need to retype the colors.
If a pasted color looks different on screen, it is because the monitor and the tool have different color settings. If the code values are the same, it is the same color, so there is no need to worry.
22Several similar colors were extracted, and I have nothing to use.
If a photo is full of similar colors, it is natural for the palette to be filled with similar colors too.
Change the extraction mode to vivid, or use the eyedropper to pick other spots and add contrasting colors. If needed, choose lighter and darker steps of the same color in the lightness steps to add variation.
If you really need a contrasting color, rotate the hue with the color converter. Using a color near the complement as the accent color balances the palette.
23What matters more than the number of colors?
More important than how many colors you extracted is whether each color has a defined role.
With many colors and no roles, each screen ends up using different colors and the brand feel gets blurry. Decide the main, secondary and accent colors once and use them by the same rules on every screen.