Type a tool name, for example "keyword density" or "transcript".
Upload an image to extract its dominant color palette.
Drop an image here or browse to upload
JPG, PNG, GIF, WebP (processed locally, never uploaded)
Source Image
Extracted Palette
Color Codes
| Swatch | HEX | RGB | HSL | Coverage |
|---|
CSS Variables
This color palette extractor pulls the dominant colors from any image you upload and lists each one with HEX, RGB and HSL codes plus its coverage percentage. Choose 5, 8, 12 or 16 colors, click a swatch to copy it, and export the results as CSS variables for your website, brand guide or design file.
A color palette is a small, deliberate set of colors that work together in a design. Extracting one from an image means finding the colors that appear most often and grouping similar shades into a single representative color.
A photo can contain hundreds of thousands of slightly different shades. A sunset sky alone may hold ten thousand versions of orange. The tool groups pixels that look alike, averages each group into one color, and reports how much of the picture that group covers. The group with the most pixels comes first.
Each color is shown in three formats, because different projects ask for different codes:
You can get a full palette in under a minute. The steps below match the controls you see on this page.
When you change the number of colors or the near-white/black option, the palette updates for the image already loaded, so you do not need to upload it again.
Say you upload a beach sunset with an orange sky, a navy sea and a pale cream sun glare. You keep 8 colors and leave "Ignore near-white/black" checked.
The first row of the Color Codes table might read #E8662B, rgb(232, 102, 43), hsl(19, 80%, 54%) with a coverage of about 30%. That is the burnt orange of the sky. The second row might be a deep navy such as #1F2A44, rgb(31, 42, 68), covering about 22%. The remaining rows hold the pinks, purples and soft golds in between.
Here is how you would use it. The two largest colors become your main brand or page colors. A mid-coverage gold becomes the accent for buttons. The smallest colors work for borders and hover states. Press "Copy CSS" and the variables are ready to paste into your theme.
If the cream glare disappears from the palette, that is the near-white filter at work. Uncheck the option and run the extraction again to bring it back.
The most useful number is coverage, the share of counted pixels that each color represents. Pixels removed by the near-white/black filter and fully transparent pixels are not counted, so the percentages describe only the part of the image you kept.
| Colors | Best for | What you get |
|---|---|---|
| 5 | Brand or UI palettes | Few, clearly different colors |
| 8 | General use | Balanced detail |
| 12 or 16 | Rich photos, illustration | Fine shade variations |
A widely used guideline is the 60-30-10 rule: about 60% of a layout in a dominant color, 30% in a secondary color and 10% in an accent. Your top three coverage figures give you a natural starting point. Colors with very low coverage, under 3% or so, usually work best as accents or not at all.
Check contrast before you put text on a color. The Web Content Accessibility Guidelines call for a contrast ratio of at least 4.5:1 for normal body text. A bright orange on white often falls short, so pair it with a dark navy or near-black for readable text.
If two swatches look almost the same, drop to a lower color count. If the palette feels flat and misses a small but important detail, raise the count to 12 or 16.
This tool reads image files, so any source you can save as JPG, PNG, GIF or WebP works. That covers more situations than you might expect.
Designers, front-end developers, bloggers, marketers and small business owners all use the same workflow: start from an image you already like and turn it into codes you can paste.
A sharp, well-lit image gives cleaner colors. Heavily compressed JPGs can add noise that muddies the palette, and screenshots with browser frames add colors you do not want. Crop the image first with an image crop tool so the palette reflects only the area you care about.
If you need a code converted into another format, such as CMYK for print, a HEX to RGB converter shows the same color in several systems. If you want harmonies built around one extracted color, try the color palette generator. Large images used for palette work can also slow your site, so run final assets through an image compressor before publishing.
The tool reports averages, not individual pixels. A HEX code in the table may not match any single pixel in your image exactly, but it will be a close representative of a group of similar pixels. For brand work that needs one exact color, sample the pixel directly with the image color extractor, which also lets you click a spot on the photo.
Colors can also look different on different screens, and the codes describe digital color only. Screen colors will not match printed colors exactly, so test any print project on paper. Because very small details occupy few pixels, thin lines, fine text and tiny logos inside a larger photo may not show up in the palette.
You can find more tools for working with pictures in the image editing and optimization category.
Upload an image above, pick how many colors you want, and you will have copy-ready HEX, RGB, HSL and CSS values in seconds. Try the same picture with different color counts and with the near-white/black option on and off to see which palette fits your project best.
Your report has been submitted. We will look into this issue.
A VPN changes your network exit. It does not guarantee anonymity.
Themes, plugins, code, video, audio, graphics & more from 90,000+ authors.
Web Development
Design & Media
Unlimited Access
Explore Envato Market