Skip to content
Coverton Blog
In this article
Images

Extract an image's representative HEX palette

Major image colors can provide a starting palette for a banner or page design. Representative values come from grouped samples in a reduced image rather than an exact inventory of every original pixel color.

Open the toolHow to use this tool ↓
Extract an image color palette
This illustration explains the tool's workflow. It is not the processed result of an uploaded file.

How to use this tool

  1. Add the image whose colors you want to reference.
  2. Choose the number of representative colors.
  3. Run and compare the palette with the source.
  4. Save PNG, CSV or CSS variables as needed.

Choose the right settings

Choose between three and twelve representative colors according to how much detail you need. A large background can dominate the palette, so compare a cropped image when your interest is a smaller subject.

Supported input
  • JPG,JPEG,PNG,WEBP
Available settings
  • Color count

Before you start

Prepare a representative source

Start with a copy of the source and decide where the result will be used. A picture for later editing, an upload with fixed dimensions and a printed page have different requirements. Check the supported input and intended output in this guide; a new filename extension alone does not convert the file.

Where size, quality, background or crop controls are available, change one choice at a time on a representative image. Include small lettering and an important edge in your comparison. If the task extracts information rather than changing the picture, decide which source region and values you need to inspect.

Write down the recipient’s requirements and the choices used for a trial, including output type and any size or background setting that applies. If a detail is already blurred, cropped or absent in the original, changing an output setting will not supply the missing evidence. Compare an intermediate copy separately from the original: it may already contain changes from a previous step. This record helps you decide whether to correct the source, revise one choice or use a different supported operation.

Compare the result with its source

Open the downloaded output in the program that will actually use it. For image outputs, compare the same area at the same zoom, inspect all edges and read the saved dimensions and file size. For extracted text, measurements or color values, check sample entries directly against the visible source; a plausible-looking result can still be wrong.

If the output differs from the preview or cannot be created, check the input format, this tool’s limits and the selected settings before changing the source. Repeating compression or enlarging a small image cannot restore detail already lost. Keep the original so another trial starts from the same evidence.

Example input and output

reference image → HEX/proportion CSV + CSS + palette PNG

Examples describe the workflow. Results depend on the source file and settings.

Check the saved result before using it

Compare the palette PNG with the source and inspect HEX codes and sampled-pixel percentages in CSV. Only selected leading color groups are listed, so their percentages do not necessarily add up to one hundred.

If the result is different from what you expected

A fully transparent image contains no visible colors for this extraction to process. If a small accent is missing, increase the color count or crop its region, distinguishing that sample from whole-image proportions.

Limits to keep in mind

  • Analyzes quantized colors in a reduced preview, excluding fully transparent pixels. Not exact source-color or color-management analysis.

Continue with a related tool

Convert JPG to PNG

A PNG copy gives you a file for subsequent editing without adding another round of JPEG compression during this conversion. It stores the pixels decoded from the JPG, including any compression damage already present in the source photo.

Leave both maximum dimensions at 0 to keep the source dimensions. Enter a width or height limit when you need a smaller copy, and the image keeps its aspect ratio within those limits.

Open the tool

Convert PNG to JPG

When a destination accepts JPG only, decide what color should replace the PNG's transparent areas before converting. For graphics containing both photos and text, judge the saved file by its lettering as well as its size.

Choose a background color and JPEG quality, then set maximum dimensions if the destination needs a smaller image. Keep the original PNG alongside the JPG copy when you may need its transparency for future editing.

Open the tool
CovertonExtract an image color palette
Open the tool

This guide explains the public browser tool. Keep a copy of the original and inspect the result before sharing it.