Create a dominant image palette with HEX and RGB values
Extract a dominant color palette from a photo, logo or screenshot and copy the HEX or RGB codes into your design. The tool samples visible pixels and groups similar colors, making it useful for exploring a mood board or choosing a starting website palette. A large background can outweigh a small accent, so crop to the region that interests you before analyzing a busy image.
For a worked explanation and troubleshooting, read How to Build a HEX and RGB Color Palette from a Photo.
How to get color codes from a photo or screenshot
Choose an inspiration image
Open an image that your browser can display. A focused image produces a more relevant palette than a busy screenshot.
Review the color swatches
The tool samples the image and groups similar colors into a representative palette.
Copy a HEX or RGB value
Use the color codes in a design tool or stylesheet. Check contrast before applying the palette to text and controls.
Copy representative image colors into your design
Sample dominant visible colors
Group representative pixel colors into a compact palette while excluding transparent areas from sampling.
Copy HEX and RGB swatches
Copy individual values or the complete palette for a stylesheet, presentation or design document.
Choose which image to analyze
Add source images and select the photo, screenshot or illustration whose colors you want to inspect.
Review the palette in context
Use the result as a starting point and check text contrast; small accent colors may not dominate the sample.
Source images and HEX or RGB palette output
Why an extracted image palette can miss accent colors
A dominant palette groups sampled pixel colors rather than listing every color or selecting an exact point under a cursor. Small accents may disappear, and a broad background can dominate. Crop the source when you want one region, then test the chosen text and background colors for readability. Sampling, scaling and browser color handling can differ from a color-managed design application.
Questions about extracting color palettes from images
How do I get HEX color codes from an image?
Select an image and review its extracted palette. Each swatch includes a hexadecimal value you can copy into a stylesheet or design application.
Does a dominant palette include every color in the image?
No. A palette summarizes groups of similar pixels into a small set of representative colors. Small accent details may be absent, especially in a photograph with many shades.
Why do palette colors differ slightly from my design application?
Sampling, grouping, image scaling and color management can produce different representative values. Use the palette as a practical starting point rather than a certified color measurement.