Skip to contentviewgum

Logo color extractor: hex codes from a logo

Last updated

Drop a logo or any picture and get up to five of its main colors as hex, RGB and HSL codes, with a flat white or black background left out. Each color shows whether white or black text reads better on it, by WCAG contrast ratio. Click the picture to take any other color. It runs in your browser.

Need a whole short too? ViewGum makes one from a topic, with a script, voice, captions and sound. Make a full short

How to extract colors from a logo

  1. Drop the logo file.
  2. Read its main colors as hex, RGB and HSL codes, with the text color that reads best on each.
  3. Copy a code, or all of them as CSS.
Embed this tool on your site

How do I find the hex code of a logo's colors?

Drop the logo. Its main colors appear as swatches with their hex, RGB and HSL codes; press Copy next to a code. For a color the list missed, click that spot on the picture.

Why is the white background not in the list?

When the edges of the picture are almost all one flat white, black or gray, that color is taken as the background and left out. A colored background that reaches the edges stays, since it is likely part of the brand.

Which text color should go on a brand color?

The one with the higher contrast ratio. WCAG 2.2 asks for at least 4.5:1 for normal text and 3:1 for large text, and each swatch shows both ratios. Text that is part of a logo has no contrast requirement, but captions and buttons in brand colors do.

Are the codes exact?

Close. Similar pixels are grouped and averaged, so a gradient or a photo gives the average of each group, and JPEG compression can shift a color slightly. For the code of one flat area, click it on the picture.

Which files work?

Any picture your browser can open: PNG, JPEG, WebP, GIF and SVG in current browsers. A see-through part is skipped, so a transparent PNG gives only the logo's own colors.

Is my logo uploaded?

No. The picture is read in your browser and is never sent to our server.

Sources

  1. W3C WAI: Understanding Success Criterion 1.4.3, Contrast (Minimum)Checked November 27, 2026
  2. MDN: Image file type and format guideChecked November 27, 2026

Make a short in ViewGum from a topic, sized for Reels, Shorts and TikTok

Making videos for a business? See what to post, by industry, and the plans and prices.