Color Code Extractor
Extract a color palette from an image
Image
Extraction settings
Colors that match the selected mood are more likely to remain
Extracted colors
Choose an image to see the extracted colors here
What is Color Code Extractor?
A tool that extracts the main colors from an image and lists them with their HEX, RGB, HSL, or OKLCH codes and their share of the palette. Use it to pull a palette from a photo, banner, or screenshot.
Images are processed in your browser and are not uploaded.
How to Use
- Choose an image file. You can also drag and drop it.
- The main colors appear in the list.
- Adjust the number of colors and palette mood. The list updates as you change them.
- Click a color to copy it, or use Copy all to take the whole list.
Main Settings
Number of Colors
The number of colors to extract. A higher value keeps nearby colors separate, and a lower value groups them. If an image has fewer colors than the selected number, only the available colors are shown.
Palette Mood
Choose which colors should remain more easily. Balanced follows how often each color appears, Vivid favors saturated colors, Calm favors muted colors, Light favors bright colors, and Deep favors dark colors.
Excluding Near-White and Near-Black Colors
Use these options to keep white or black backgrounds out of the palette. A higher exclusion strength removes a wider range of near-white and near-black colors. Turn both off to disable white and black exclusion.
Reading the Results
Each color shows its share of the palette. Sort the list by frequency, hue, or lightness, and choose the color format for copying. Copy all copies one color per line in the selected format.
Use Cases
- Building a palette from a photo or banner
- Reviewing the main colors in a screenshot of a reference site
- Checking the overall color balance of a UI mockup or illustration
- Collecting candidate brand colors from image assets
Things to Keep in Mind
- Pixels that are mostly transparent are not treated as colors
- The result is a set of representative colors grouped from nearby pixels, not a list of every color in the image
Last updated:

