Skip to content

Image color picker

Drop, paste or choose an image, then click anywhere on it to get that colour as HEX, RGB, HSL and OKLCH, with a plain description and the closest Tailwind CSS colour. The tool also pulls a palette of 5 to 8 colours from the image, which you can copy as CSS variables, a Tailwind @theme block or JSON. Your image stays in your browser.

or drop or paste one. Samples:

Four ways to write one colour

The picker shows every colour in all four forms, and they all describe the same sRGB colour. The example is #2b7fff, Tailwind's blue-500 as hex. Tailwind defines that colour as oklch(62.3% 0.214 259.815), slightly outside what an sRGB screen can show, so its hex is the nearest colour inside, and that hex reads back as a slightly different OKLCH.

The Tailwind match compares your colour with all 288 colours of Tailwind CSS 4.3.3 (the 26 palettes from 50 to 950, plus black and white) by ΔE in OKLab. Under 2 is hard to tell apart; above 5 you see the difference. To build on a brand colour, turn it into a 50–950 Tailwind palette or a shadcn/ui theme: the links under the swatch open both with the colour filled in.

FormatExampleWhat it is
HEX#2b7fffSix hex digits for red, green and blue: the form most design tools and stylesheets use.
RGBrgb(43 127 255)The same three channels as numbers from 0 to 255. Handy in code that does colour maths.
HSLhsl(216.2 100% 58.4%)Hue in degrees, saturation and lightness. Easy to adjust by hand, but the same lightness number looks lighter in yellow than in blue.
OKLCHoklch(61.9% 0.207 259.232)Lightness, chroma and hue in a space built to match how we see. Tailwind CSS 4 and shadcn/ui write their colours this way.

Blocks to try your palette on

9 of 127 free, no account. All of them in UI Pro.

  • Hero (hero-01)01

    Hero

    hero-01 · Free. Journey-planner hero: from/to card with leave-at tabs, a day-out photo card and four quick-task tiles.

    Open hero-01
  • Call to action (call-to-action-01)02

    Call to action

    call-to-action-01 · Free. Closing panel with a very large centred title, three pill actions (call, mail, book) and the founders' faces.

    Open call-to-action-01
  • 03

    All free blocks

    Every one with a live preview, filtered to the ones you can use for free first.

    See them all

Questions

How do I pick a colour from an image?

Drop the image on the picker, paste it with Ctrl+V or Cmd+V, or click Choose image. Then click anywhere on it. The loupe shows the pixels under the pointer enlarged, so you can hit the exact one, and the colour appears on the right as HEX, RGB, HSL and OKLCH. Click a value to copy it. With the keyboard, focus the image, move with the arrow keys and press Enter.

How is the colour palette from an image made?

The tool samples up to 20,000 pixels and groups them by colour in OKLab, a colour space where equal distances look like equal differences. It takes the most common colour first, then each time the colour with the best mix of size and difference from those already chosen, with extra weight for colourful areas. That way a small orange crate makes the palette instead of a fourth shade of brown.

How do I find the name of a colour?

Under the swatch the tool gives a plain description built from the colour's OKLCH numbers, such as "dark muted blue". It also names the closest Tailwind CSS colour, such as sky-700, with the ΔE distance so you can tell how close it is. There is no single official list of colour names; Tailwind's are the ones most web projects share.

Can I use the colour in Tailwind CSS?

Yes, in two ways. Copy the closest Tailwind class, such as bg-sky-700, when a ΔE under 2 is close enough. For the exact colours, copy the palette as an @theme block: Tailwind 4 then makes bg-palette-1, text-palette-2 and so on from it.

Why does the colour I picked look different from the palette?

A single pixel in a photo is rarely the colour you see: noise, shade and JPG compression shift it from pixel to pixel. Palette colours are averages of many similar pixels, so they are steadier. If a picked colour looks off, try the pixels next to it, or use the palette swatch.

Is it free, and is my image uploaded?

It is free, with no sign-up. The image is never uploaded: your browser reads it and works out every colour on your own device.

UI Pro

Build your next site from finished blocks

Every block, page template and website theme from €199, paid once, with every update and everything we add later. Not ready? The free blocks are open to everyone.

blocks
1401
page templates
55
website themes
29
The About page template from UI Pro, built from its blocks.

This card is a UI Pro block: Rooilijn (call-to-action-07).