ClickNote
ClickNote
Try the live demoStart free trial

The demo needs no sign-up. The trial needs no card.

Open dashboard
Choose a plan
Dashboard
Start free trial

The trial needs no card.

Colour picker from image

Open an image, click any pixel and copy its colour as HEX, RGB, HSL or OKLCH. You also get the image’s main colours and the colours that go with the one you picked.

Nothing is uploaded: your image never leaves your browser. (If you spell it the American way, this is a color picker.)

Drop an image here

or paste one from the clipboard, or

PNG, JPEG, WebP or GIF, up to 20 MB. Nothing is uploaded: your image never leaves your browser.

Picked colour

An example to start with. Pick a colour from your image, or type a HEX code.

HEX
#FF5B1F
RGB
rgb(255, 91, 31)
HSL
hsl(16, 100%, 56%)
OKLCH
oklch(68.3% 0.21 38)

Under black and white text

  • Black text6.76:1 Passes for normal text
  • White text3.10:1 Too low for normal text, passes for large text

Main colours in the image

Open an image to see its main colours here.

Colours that go with it

Click a swatch to copy its HEX code.

Complementary Opposite on the colour wheel

Analogous The neighbours on each side

Triadic A third of the way round, each way

Tints and shades White mixed in, then black

Runs in your browser. Nothing you open or type is sent anywhere.

How to use it

  1. Open an image

    Choose a file, drop one on the page or paste one from the clipboard. PNG, JPEG, WebP and GIF files all work, up to 20 MB.

  2. Point at the colour

    Move over the image. The magnifier shows the pixels under the pointer, so you can land on the exact one.

  3. Click to pick it

    Click or tap. With a keyboard, move with the arrow keys and press Enter. The colour is shown as HEX, RGB, HSL and OKLCH.

  4. Copy what you need

    Every code has a Copy button. Under the image are its main colours, the colours that go with yours, and how it reads under black and white text.

HEX, RGB, HSL and OKLCH: which code to use

Every colour on a screen is a mix of red, green and blue light. The four codes above are four ways of writing the same colour down, and each suits a different job.

HEX

A HEX code such as #1B998B is the amounts of red, green and blue written as three two-digit numbers in base 16, from 00 (none) to FF (full). It is the shortest form, and the one that design tools, brand guidelines and style sheets pass around. Use it when you hand a colour to someone else.

RGB

rgb(27, 153, 139) is the same three amounts in ordinary numbers, from 0 to 255. It says nothing that HEX does not, but it is easier to read, and it is the form to reach for when a colour needs to be partly transparent: a fourth value sets how much of what is behind it shows through.

HSL

hsl(173, 70%, 35%) describes the colour the way people talk about one: its hue (an angle on the colour wheel, where 0 is red, 120 is green and 240 is blue), how saturated it is and how light. That makes it the handy form for adjusting by hand. Raise the last number for a lighter version of a button, lower the middle one to calm it down. Its weakness is that its lightness is not the lightness the eye sees: a yellow and a blue with the same value look nothing alike.

OKLCH

oklch(61.6% 0.104 183.2) fixes that. It is a newer way of writing a colour, built on how people perceive it: lightness, chroma (how vivid it is) and hue. Two colours with the same OKLCH lightness do look equally light, so a set of tints or a row of status colours worked out in OKLCH comes out even. Every current browser reads it in a style sheet. Use it where colours are worked out with sums, in a design system or a palette, and keep HEX for handing over.

Colours that go together

The suggestions come from turning the hue around the colour wheel while the saturation and lightness stay as they are. The complementary colour sits opposite, 180 degrees away, and gives the strongest contrast of hue, which suits a single accent. Analogous colours sit 30 degrees to each side and make calm, related schemes. A triad is three colours a third of the wheel apart: lively, and hard to balance, so let one of them lead. Tints are your colour with white mixed in and shades are your colour with black. They are the usual source of hover states, borders and backgrounds.

Reading the contrast figures

A contrast ratio compares how light two colours are, from 1:1 (the same) to 21:1 (black on white). The Web Content Accessibility Guidelines ask for at least 4.5:1 between normal text and its background, and 3:1 for large text. If neither black nor white reaches 4.5:1 on a colour, keep that colour for decoration and put the words somewhere else.

The limits of this page: it opens one image at a time, of up to 20 MB and 64 megapixels, and an image longer than 4,096 pixels on a side is scaled down to that before it is shown and measured.

Colour picker from image

Questions people ask

How do I get a colour from an image?

Open the image on this page, move the pointer to the spot you want and click. The colour of that exact pixel is shown as HEX, RGB, HSL and OKLCH, each with a Copy button. On a phone, tap the spot, then use the arrow buttons under the image to move one pixel at a time.

How do I find the HEX code of a colour in an image?

Click the colour in the image. Its HEX code, #1B998B for example, is the first line under “Picked colour”, and Copy puts it on your clipboard.

Watch the magnifier at the edge of a logo or a letter. The pixels there are blends of the shape and its background, so move a pixel or two inwards for the true colour.

Can I make a colour palette from an image?

Yes. As soon as an image is open the page lists its main colours, the most common first. They are colours that are really in the image, so a logo made of three flat colours gives exactly those three. Click one to pick it and see the colours that go with it.

Is my image uploaded anywhere?

No. Your browser reads the image on your own device, and it is never sent to us or to anyone else. That makes the page safe to use on client work that is not public yet. Once the page has loaded it works with no connection at all.

What is a complementary colour?

The colour opposite yours on the colour wheel: orange for blue, green for magenta. Side by side the two make each other look stronger, which is why a complementary colour is a common choice for the one button a page wants pressed. Pick a colour here and its complement is shown, ready to copy.

How do I convert a HEX code to RGB, HSL or OKLCH?

Type or paste the HEX code into the box under “Picked colour”. The same colour is written out at once as RGB, HSL and OKLCH, with the colours that go with it. No image is needed for this.

Live demo

Try the live demo

We will set up a demo account for you.