Color, Vector & CSSFree • 100% Client-Side

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.

No image loaded
6

Extracted Palette

Load an image to extract a palette.

    How to use Color Palette & Hex Extractor

    1. Drop in an image or use Try Sample Studio Image to see a palette immediately.
    2. 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.
    3. 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