Send feedback

Coming from the page: Color Palette from Image

One moment…

Your image never leaves your deviceCSS & TailwindNo ads

Color Palette from Image

Upload an image or logo and get its colors as ready-to-use codes, with the readable text color for each.

Image

Click a color to copy its code.

Using your logo colors on your site

1

Pick the main color

Usually the one with the biggest share. Use it for buttons, links and anything that should stand out.

2

Pick a secondary color

For headings or calm backgrounds; ideally clearly darker or lighter than the main one.

3

Copy the codes

Copy them as CSS variables or Tailwind config for your site or your designer.

Tips for your site’s colors

The 60-30-10 rule. 60% a neutral background color, 30% a secondary color, 10% your brand color for buttons and key elements.

Mind text contrast. Each color shows whether white or black text reads on it. 4.5:1 or more suits normal text under WCAG.

Don’t use too many. Two or three colors from your logo are enough for a consistent, comfortable site.

FAQ

How does it extract the colors?

It reads the image’s pixels in your browser, skips transparent (and optionally white) ones, groups similar shades with the median-cut algorithm from the open-source color-thief library, and orders colors by their share of the logo.

Why is a color slightly different from my design file?

Similar shades are averaged, and compressed JPGs shift colors a little. For accuracy use PNG or SVG, or ask your logo designer for the original codes.

What does 4.5:1 under a color mean?

The WCAG contrast ratio between the text and background colors. Higher is easier to read; 4.5:1 is the minimum for normal text.

What’s the difference between HEX, RGB and HSL?

Three ways to write the same color: HEX like #446E7D is the most common on the web, RGB gives the red, green and blue amounts, and HSL gives hue, saturation and lightness, which is easiest for making a color lighter or darker.

How do I find a color code from an image?

Upload the image: its main colors appear with their HEX code, like #446E7D, and RGB code under each. Click a color to copy its code.

Is my image uploaded anywhere?

No. Everything runs in your browser; the image never leaves your device.