Aphrodi

Palette from image and colour converter

Upload an image and the tool pulls its dominant colours in HEX, RGB, HSL and approximate CMYK. Check the contrast of each pair and export the palette as CSS or JSON.

A palette from your image

Colours are sorted by their share of the image. Click a value to copy it, and a swatch to send the colour to the converter.

No account. The file stays on your device, nothing is sent to a server.

You are looking at a sample illustration.
Sample illustration: hills and a sun in warm colours

Loading the image...

CMYK here is only an approximation

The values come from a simple formula in the CSS specification, with no colour profile. The printed result depends on the profile, the paper and the press, and the W3C warns that such an approximation can be very far from what actually comes out. For print, convert colours in a design application using the profile your printer gives you.

Contrast of colour pairs

Every colour is checked against every other, plus white and black. Click a cell to see text in those colours.

Rows are the background, columns are the text colour.

This is how a heading looks

And this is regular text in these colours, at the size people read on a site.

Contrast21.00 : 1

Text #FFFFFF, background #000000

  • AA, normal text4.5:1Pass
  • AA, large text3:1Pass
  • AAA, normal text7:1Pass
  • AAA, large text4.5:1Pass
  • Icons and interface elements3:1Pass

This pair meets every WCAG text threshold. Large text means at least 18 pt or 14 pt bold. The result is cut to two decimals, because WCAG does not allow rounding up.

Colour converter

Type a colour in any format or click a swatch in the palette.

Works with #D4AF37, rgb(212, 175, 55), hsl(46, 65%, 52%), cmyk(0, 17, 74, 17) or C 0 M 17 Y 74 K 17.

Export the palette

The export has 0 colours. Colours you add also go here.

Format

CSS variables

:root {
}

Five rules for working with a palette from an image

Share of the image is not importance

The percentage says how much space a colour takes up in the image. The strongest accent often has only a few percent, so do not pick a brand colour by the number alone.

Settle CMYK with your printer

The same CMYK values give a different colour on a different press and paper. Treat the numbers on this page as a starting point, not a finished print specification.

At least 4.5:1 for text

That is the WCAG AA threshold for normal text. Large text, meaning at least 18 pt or 14 pt bold, needs 3:1, and level AAA needs 7:1 and 4.5:1 respectively.

Icons and buttons have a threshold too

WCAG requires 3:1 for graphical elements needed to understand the content and for control boundaries against neighbouring colours.

Keep colours in one place

Exporting to CSS or JSON gives you one file of values for the site and the developer, instead of colours retyped by hand from an image.

Palette and colour conversion questions

Is a palette just the start of your brand?

Visual identity covers the logo, colours, type and a brand book, and starts from 2,900 PLN net.