Image Colour Palette Extractor

Extract the dominant colours from a photo or logo as hex codes with their share of the image, ready to paste into CSS or design tools.

Runs on your device

    Result

    Results appear here after you select “Extract colours”.

    What it does

    Building a theme from a brand photo or matching a client’s logo? The extractor samples the pixels, groups similar shades and returns the most common distinct colours.

    How to use it

    1. Choose an image.
    2. Choose how many colours to return.
    3. Copy the hex codes or the CSS variables.

    Example

    The example generates a small sample file in your browser and runs the tool on it. Select Try an example above to see it.

    When it helps

    • Matching website colours to a logo.
    • Building presentation themes from photos.
    • Checking brand colour consistency.

    Questions

    Why does a colour differ slightly from my brand hex?

    Compression and antialiasing shift pixel values a little, and similar shades are averaged together.

    Are transparent pixels counted?

    No. Pixels less than 50% opaque are ignored.

    More image tools

    See all 12

    People also use

    Browse all 200 tools