Color Code Extractor

Extract a color palette from an image

Image

Drop image hereor click to select an imagePNG / JPEG / WebP / GIF / BMP / AVIF

Extraction settings

Palette mood

Colors that match the selected mood are more likely to remain

Higher values keep subtler color differences
Higher values exclude a wider range of near-white and near-black colors

Extracted colors

Sort order
Color format

Choose an image to see the extracted colors here

What is Color Code Extractor?

A tool that extracts the main colors from an image and lists them with their HEX, RGB, HSL, or OKLCH codes and their share of the palette. Use it to pull a palette from a photo, banner, or screenshot.

Images are processed in your browser and are not uploaded.

How to Use

  1. Choose an image file. You can also drag and drop it.
  2. The main colors appear in the list.
  3. Adjust the number of colors and palette mood. The list updates as you change them.
  4. Click a color to copy it, or use Copy all to take the whole list.

Main Settings

Number of Colors

The number of colors to extract. A higher value keeps nearby colors separate, and a lower value groups them. If an image has fewer colors than the selected number, only the available colors are shown.

Palette Mood

Choose which colors should remain more easily. Balanced follows how often each color appears, Vivid favors saturated colors, Calm favors muted colors, Light favors bright colors, and Deep favors dark colors.

Excluding Near-White and Near-Black Colors

Use these options to keep white or black backgrounds out of the palette. A higher exclusion strength removes a wider range of near-white and near-black colors. Turn both off to disable white and black exclusion.

Reading the Results

Each color shows its share of the palette. Sort the list by frequency, hue, or lightness, and choose the color format for copying. Copy all copies one color per line in the selected format.

Use Cases

  • Building a palette from a photo or banner
  • Reviewing the main colors in a screenshot of a reference site
  • Checking the overall color balance of a UI mockup or illustration
  • Collecting candidate brand colors from image assets

Things to Keep in Mind

  • Pixels that are mostly transparent are not treated as colors
  • The result is a set of representative colors grouped from nearby pixels, not a list of every color in the image