Extract a Colour Palette From an Image or Logo

Upload your logo or a product photo and get its main colours as HEX codes with each colour's share, the readable text colour on top, and ready CSS variables. All in your browser.

Extract colours now
#0b2a55#1557b0#f7931e#2f9e6a#e9eef5

Colours

How the tool works

Simple steps, all in your browser with no sign-up.

Pick an image

A logo or product photo.

Extract colours

4 to 10 colours.

Copy variables

With readable text colour.

Building site colours from your logo

  1. Primary: the strongest logo colour, for buttons and links.
  2. Dark: for text and headings, often a deep shade of the primary.
  3. Light: for backgrounds and cards.
  4. Accent: one colour for alerts and offers, used sparingly.
  5. Check each text and background pair with the contrast checker.

How the tool works

It shrinks the image in your browser, groups similar pixels with k-means, and shows each group's average and share. Images on white show white as a big colour, so crop the logo or pick more colours.

The 60-30-10 rule

A well-known design rule: a dominant colour for about 60% of the space such as backgrounds, a secondary one for about 30% such as cards and sections, and an accent for about 10% for buttons and alerts. Use your logo's strongest colour as the accent, not the background.

Key terms

Short definitions of what you meet along the way.

HEX
A colour written as six hex digits such as #1557b0.
CSS variables
Names for colours such as --color-1; change once and the whole site follows.
k-means
A way to group similar colours into clusters, used here to find the main colours.

Frequently asked questions

Did not find your answer? Ask us on WhatsApp

Is my image uploaded?

No. The analysis runs in your browser.

Why do colours differ slightly from my logo?

The tool averages close colours. If you have official brand colours, use those.

How many colours does a site need?

Usually 3 to 5: primary, dark, light and accent, plus white.

Want a complete visual identity?

We choose colours and fonts and design your site with one identity.

Contact us on WhatsApp