Logo to hex codes, on your device

Pull the color palette out of your logo or photo.

Most one-person brands never wrote down their hex codes. Drop in the logo or a product photo and the tool lists up to six main colors with their hex and RGB values and their share of the image, says whether near-black or white text reads on each, and proposes a background and accent pair for your posts. Transparent pixels are left out, so a PNG logo gives the cleanest result.

Free, no account, nothing uploaded. Updated .

Posting every week? See Creobee’s Instagram feed design.

PNG logos with transparency work best. The file stays on your device.

How the extractor picks your colors

There is no guesswork in the list. It comes from four fixed steps, and knowing them explains every result, including the odd ones.

It reads the image at 96 by 96

The image is drawn onto a canvas of 96 by 96 pixels, 9,216 in all, and those are the pixels counted. The image is stretched to that square whatever its shape, which changes nothing in the counting: every color keeps its share of the area.

It leaves out see-through pixels

Any pixel that is more than half transparent is skipped, so the empty area around a PNG logo is not a color. A JPG has no transparency, so its white or coloured background is counted like any other color and often comes out first.

It groups shades into 32 levels

Each of red, green and blue is cut to 32 levels, which puts every pixel into one of 32,768 groups. The color shown for a group is the average of the pixels in it, and its share is those pixels out of all the pixels that were counted.

It keeps only colors that look different

Groups are taken from the largest down, and one is kept only when it sits more than 48 steps away from every color already kept, measured as a straight distance across red, green and blue. That is why a logo with two close blues shows one, and why the list stops before six when the image has fewer distinct colors.

What the contrast verdict means

Each color is tested against near-black (#0B0500) and white with the contrast formula of the Web Content Accessibility Guidelines, and the one that reads better is shown. It passes when it reaches 4.5:1, the WCAG AA level for normal text. WCAG allows 3:1 for large text, which it defines as 18 point or 14 point bold, about 24 and 18.5 pixels on a screen.

The suggested pair takes the most common color as the background and the first other color with at least 3:1 against it as the accent, falling back to the second color when none reaches it. Test any other pair in the contrast checker.

When the values differ from your brand guide

JPG compression, the soft edges of shapes and the averaging inside each group can move a value by a few points. If you have official hex codes, use them. If you do not, the extracted values are a fair place to standardise: write them down once and use the same ones on every post, which matters more for a recognisable grid than the exact hue. The brand color guide explains how to grow two colors into a palette without losing them.

From file to palette

  1. 01

    Choose a logo (a PNG with transparency is best) or any brand photo.

  2. 02

    Copy the hex codes you want to keep. The percentage shows how much of the image each color covers.

  3. 03

    Use the suggested pair, or test other pairs in the contrast checker, then keep the codes with your brand notes.

Palette questions

  • Upload the logo here. The tool counts its pixels, groups close shades and lists the largest groups as hex codes you can copy. Transparent areas are left out, so the background of a PNG logo is not counted.

  • One background, one accent and one text color are enough for a consistent grid. Aim for at least 3:1 between background and accent and 4.5:1 between background and text, the WCAG levels the tool checks.

  • Either it covers very little of the image, or it sits within 48 steps of a larger color that is already listed, so the two count as one.

  • No. It is drawn onto a small canvas in your browser and the pixels are read there. Nothing is stored.