Color Palette & Hex Extractor
Drop any image or try our studio sample to extract dominant harmonious swatches with instant HEX, RGB, HSL, CSS variables, and PNG export.
Extracted Palette
Load an image to extract a palette.
How to use Color Palette & Hex Extractor
- Drop in an image or use Try Sample Studio Image to see a palette immediately.
- Set the target swatch count from five to ten. The tool groups nearby colors and ranks swatches by how often they occur in the sample.
- Select a HEX, RGB, or HSL value to copy it, copy the whole palette as CSS variables, or export a PNG.
Privacy & client-side processing
The browser samples pixels in a local canvas. The built-in sample is generated in the browser and your image stays on your device.
Key features
- Dominant color extraction from visible pixels.
- One-click copying in HEX, RGB, and HSL formats.
- CSS custom properties and a shareable palette PNG.
Frequently asked questions
Why are some accent colors missing?
The extractor ranks large color regions. Crop to the accent area for better sampling.
Why did I get fewer swatches than I requested?
A flat image may contain only a few distinct colors, and the extractor excludes pixels below half opacity. Increasing the count cannot add colors that are absent from the sample.
Why is a small accent missing?
Dominant color extraction favors larger color regions. Crop around the accent before sampling if that area matters most.
Can I paste the CSS into a stylesheet?
Yes. The copied declaration block defines the colors as custom properties under the :root selector.
Studio links
Related studio tools
- Color, VectorFree · Client-Side
CSS Gradient & Glass Generator
linear-gradient · blurOpen - ImageFree · Client-Side
Modern Format Converter
JPG/PNG → WebP/AVIFOpen - UI, TypographyFree · Client-Side
Typography & Font Pair Previewer
Aa · PairOpen - Color, VectorFree · Client-Side
Geometric Pattern Generator
Dots · Grid · WavesOpen