Free Online Tool

Image Color Picker: Find the Hex Code and Palette of Any Image

A free image color picker, eye-dropper, hex code finder, and color palette generator all in one. Drop any JPG, PNG, WebP, or GIF and click any pixel to grab its exact hex, RGB, HSL, and OKLCH, or auto-extract a 4 to 12 colour palette of the dominant colours in the image. Works as a color finder from image, picture colour picker, hex color picker from image, RGB color picker from image, color identifier, and color palette generator from photo, all in one place. The image is decoded entirely in your browser, no upload, no tracking, no signup.

★★★★★4.9, used by designers, developers, and content creators
Last updated: June 5, 2026Author: Gizmoop EditorialReview: Median-cut quantization, client-side, no upload
QUICK ANSWER

To find the hex code of any colour in an image, drop the image into Gizmoop's free image color picker and click the pixel you want; the exact hex, RGB, HSL, and OKLCH values appear instantly, along with an auto-extracted palette of up to 12 dominant colours. The image is decoded entirely in your browser using the canvas API, so it never leaves your device, never gets uploaded, and never gets logged. Export the palette as CSS variables, SCSS, Tailwind config, JSON, or a PNG strip, ready to paste into Figma, Canva, Tailwind, or your CSS.

Drop an image here, or click to choose

JPG, PNG, WebP, or GIF up to about 20 MB. Image stays in your browser, never uploaded.

How to find the hex code of any colour in an image

The fastest way to get the hex code from an image is to use a browser-based eye-dropper tool that reads the colour directly off the pixel you click. The hex code (also called the HTML color code) is the 6-character format like #3B82F6 that designers paste into Figma, developers paste into CSS, and brands use in their style guides.

  1. Drop the image into the tool above. JPG, PNG, WebP, GIF, and most other browser-supported formats work. The image is decoded by your browser, never uploaded.
  2. Hover the image. A tooltip follows the cursor with a live preview of the colour and its hex code, so you can scan a photo before committing.
  3. Click the pixel you want. The picked colour locks in the side panel with its hex, RGB, HSL, and OKLCH values plus a one-click copy.

Every hex code from this tool is the exact pixel value, not an averaged approximation. If you need a colour finder from image with pixel precision (a brand logo, an icon background, a button colour from a screenshot), clicking directly on that pixel gives you the canonical hex without rounding.

Color palette generator from image, in detail

The auto-extracted palette is generated by median-cut quantization over a downscaled copy of your image. Click the palette size selector to choose 4, 5, 6, 8, 10, or 12 colours. Each card shows the hex code and the approximate share of the image that colour represents, so you can tell at a glance which tones are dominant and which are accent or background.

As a color palette generator from photo, the tool works best with images that have a clear visual identity: brand mockups, product shots, posters, moodboard images, gradients, illustrations, paintings, and travel photos. A photo of a single object on a neutral background produces a clean 3 to 5 colour palette. A complex scene like a city skyline at sunset will yield a more granular 8 to 12 colour palette that captures the gradient transitions.

Transparent pixels in PNG or WebP images are ignored during palette extraction, so a logo on a transparent background returns just the logo's colours rather than mixing them with a checkered or white canvas.

Every colour format, from one click

Whether you need an RGB color picker from image, a hex picker from image, or the modern OKLCH value for a 2026 design system, this tool outputs all four formats simultaneously for every pixel you click:

FormatExampleWhen to use it
Hex#3B82F6CSS, HTML, Figma, Canva, brand guides. The universal format.
RGBrgb(59, 130, 246)When you need to manipulate channels individually, or when working with image-processing code.
HSLhsl(217, 91%, 60%)For building shade scales (same hue, varied lightness) and for explaining colour to non-designers.
OKLCHoklch(0.623 0.188 260)Modern perceptual colour space for design systems. Two colours at the same OKLCH lightness look equally bright.

The tool also shows the closest Tailwind 500-shade name (e.g. blue-500) and the best WCAG contrast ratio against pure white or pure black, so you can tell immediately whether your picked colour is accessible for body text.

An eye dropper tool that works on any image

The eye dropper (sometimes spelled eyedropper or colour dropper) is the small magnifier-style picker built into image editors like Photoshop and operating systems like macOS. It samples the colour of a single pixel and reads it back in your chosen format. The image color picker on this page is a free, browser-based eye dropper tool that works on any image you can open in a tab, without installing Photoshop or signing into Adobe.

If you have used the native eye dropper in Photoshop, Affinity, GIMP, or Procreate, this tool will feel familiar: hover for a live preview, click to lock the colour, and copy any of the four output formats. The difference is that this one runs in your browser, on any device, with no install, and without uploading the image anywhere.

Color scheme generator: derive harmonies from your image

Once you have a dominant colour from your image, you can use it as the starting point for a full colour scheme. Each card in the auto-extracted palette is a candidate base colour. Click any swatch to set it as the picked colour, then pair it with our companion Color Picker, which generates complementary, analogous, and triadic harmonies from any hex.

A typical workflow:

  1. Drop the image into this tool. Note the dominant colour from the palette.
  2. Open the Color Picker in a new tab.
  3. Paste the dominant hex; the harmonies panel produces complementary, analogous, and triadic swatches.
  4. Pick one as your accent colour. You now have a 2-colour brand scheme rooted in the photo.

For Canva users: getting the palette into your design

Canva has a built-in palette generator, but it caps you at 5 colours, picks them automatically, and does not let you adjust palette size. The image color picker on this page extracts up to 12 colours, sorted by share of the image, and lets you click individual pixels for full pixel-level control.

To use the palette in Canva: extract the palette here, copy each hex code, then in Canva click any element with a colour, choose the colour picker, and paste the hex into the input field. Repeat for each colour. The same workflow works for Figma, Sketch, Affinity, and any tool that accepts a hex input.

Image color picker vs Photoshop, Canva, Coolors, and Adobe Color

ToolPixel pickPalette sizeFreeBrowser-based
Gizmoop Image Color PickerYes, pixel-exact4 to 12, adjustableYes, no signupYes, no upload
Adobe Photoshop (Eye Dropper)YesNot built-in (manual)Paid subscriptionNo, native app
Canva (Photo Color Palette)NoUp to 5 (auto)Free with accountYes, requires login
CoolorsYes (image upload)Up to 5 (default)Free with limitsYes
Adobe ColorYes (image upload)Up to 5 (auto)Free with Adobe IDYes, requires login
macOS Digital Color MeterYesNot built-inFree, built-inNo, native app

The honest summary: if you want a fast, free, no-signup, browser-based image color picker with both pixel-exact picking and a flexible 4 to 12 colour palette, this tool covers it. If you need advanced editing, gradient manipulation, or harmony exploration after extraction, pair this with our companion Color Picker or open a dedicated editor.

What this tool does well

Two color workflows in one tool: pixel-exact picking and dominant-palette extraction.

Pixel-exact picking

Click any pixel for the precise hex at that point, with hex, RGB, HSL, and OKLCH outputs side by side.

Auto palette extraction

4 to 12 dominant colors generated by median-cut quantization, sorted by share of the image.

Image stays local

The file is decoded in your browser. Nothing is uploaded, logged, or stored on any server.

Four color formats

Hex, RGB, HSL, and modern OKLCH for every picked color, with one-click copy.

Closest Tailwind class

Every picked color is mapped to the closest Tailwind 500-shade name so you can use it in your codebase immediately.

Export in four formats

CSS variables, SCSS variables, Tailwind config, or JSON. One-click copy or download the palette as a PNG strip.

Who uses it

Six common workflows where lifting colors from an image saves time.

For brand designers

Match the exact colors of a competitor brand asset, a screenshot, or a moodboard image when starting a new design system.

For web developers

Lift colors from a client mockup PNG into CSS variables or Tailwind config without manually eyedropping in Photoshop.

For product photographers

Extract the palette of a hero product shot to set background, text, and accent colors that match the photograph.

For UI engineers

Read the exact hex of a button or surface in a screenshot to reproduce it in code, without guessing.

For content creators

Build thumbnail palettes from video stills so your channel art stays visually consistent.

For interior designers

Pull a palette from a photograph of fabric, paint sample, or room reference to brief a client.

How it works under the hood

A practical look at the two pipelines this tool runs: pixel picking and palette extraction.

Pixel picking

When you click anywhere on the displayed image, the tool maps the click position to the canvas's pixel coordinate system, reads a single 1 by 1 pixel ImageData, and converts the RGBA value into hex, RGB, HSL, and OKLCH strings. Every browser performs this client-side using the standard HTML canvas API. There is no JavaScript color library involved, and no data leaves the page.

Palette extraction by median-cut quantization

For the palette we use a classic algorithm called median-cut quantization, originally introduced for 24-bit to 8-bit color reduction in computer graphics. The steps are:

  1. Downscale the image to a small sampling canvas (200 pixels on the long side) for speed.
  2. Sample up to 50,000 pixels and ignore any with low alpha so transparent backgrounds do not pollute the palette.
  3. Put all sampled pixels in one box, find the channel (R, G, or B) with the greatest range, sort by that channel, and split at the median.
  4. Repeat recursively on each resulting box until you have N boxes (where N is your chosen palette size).
  5. Average the pixels in each box to get one representative color.
  6. Sort the palette by share of pixels and render it as cards.

Median cut works well in practice. Photographs, product shots, and posters all produce palettes that closely match what a designer would pick by eye. For images where one tiny but very bright object dominates visually but only covers a small percentage of pixels, click that area directly for a pixel-exact pick.

Why we include OKLCH

OKLCH is the modern perceptual color space recommended by the CSS Color Level 4 specification. Unlike HSL, two colors with the same OKLCH lightness actually look equally bright to humans, which makes building accessible color scales much easier. If you are building a design system in 2026, OKLCH is the preferred format. Older tools rarely show it; we always do.

Frequently asked questions

Common questions about extracting colors from images with this tool, the algorithm, supported formats, and privacy.

Drop or upload an image and the tool renders it to a canvas in your browser. Click anywhere on the image to read the exact color at that pixel in hex, RGB, HSL, and OKLCH. A separate median-cut algorithm runs over a downscaled copy of the image to extract a dominant palette of 4 to 12 colors, with the percentage of the image each color covers.

No. Everything happens in your browser. The image is decoded with the createImageBitmap API, drawn to an HTML canvas, and read back as pixel data on the client. You can confirm in the browser developer tools network tab: no requests are made when you pick a color or extract a palette.

JPG, PNG, WebP, and GIF are supported on all modern browsers (Chrome, Firefox, Safari, Edge). AVIF works on browsers that support it. Animated formats render the first frame. Maximum file size is limited by your browser memory, typically up to about 20 MB without trouble.

The image is downscaled to a small sampling canvas (200 pixels on the long side) for speed. We then sample up to 50,000 pixels and run a median-cut quantization, which recursively splits the RGB color space along the channel with the largest range until N color buckets remain. Each bucket is averaged to produce one palette color, and we sort the palette by share of pixels.

Picking reads the exact color of one pixel you clicked. Extracting summarises the whole image into a small palette of representative colors using a quantization algorithm. Use picking when you want to grab the colour of a specific element (a logo, a sky, a leaf). Use extraction when you want the design palette of an entire image (a photo, a poster, a screenshot).

Yes. Each output (hex, RGB, HSL, OKLCH) has a copy button. The palette section has a one-click copy for each swatch's hex. The export block builds a ready-to-paste snippet in CSS variables, SCSS variables, Tailwind config, or JSON; copy or download as a PNG palette strip.

OKLCH is a modern perceptual color space (Lightness, Chroma, Hue) used by CSS Color Level 4 and design systems like Radix. It matches how humans perceive color, so two colors with the same OKLCH lightness actually look equally bright. We include it because it is rapidly becoming the recommended format for modern web color systems.

Median cut is fast and produces good palettes for most images. For photographs and product shots it typically matches what designers would pick. Photos with very uneven color distribution (a tiny bright object on a large neutral background) can place that bright object behind background colors in the sorted palette; click directly on the area in the image for an exact pick.

Yes. The palette size selector supports 4, 5, 6, 8, 10, or 12 colors. Higher counts produce finer detail (good for posters or design references) but the smallest swatches may be very similar in tone. 6 to 8 is a good default for most images.

Yes. The tool ignores fully transparent pixels (alpha less than half) during palette extraction, so a logo on a transparent background returns the logo colors rather than a mix with the surrounding canvas. Click-to-pick on a transparent area returns the pixel color which may be (0,0,0) for fully transparent pixels.

An eye dropper (or eyedropper, color dropper) is a UI pattern that lets you sample the colour of a single pixel by clicking it. It is the small magnifier-style picker built into Photoshop, Figma, macOS, and most colour pickers. This tool is a free, browser-based eye dropper that works on any image you can upload, with no install and no signup.

Yes. The export panel produces a copy-ready snippet in CSS variables, SCSS variables, Tailwind config, or JSON. You can also download the palette as a labelled PNG strip. For Figma and Canva, copy each hex code from the palette cards and paste it into the colour input field of either app. Both accept standard 6-character hex codes.

Yes. A screenshot is just a PNG or JPG file. Drop the screenshot into the upload area and click any pixel for the exact hex, or auto-extract the dominant palette. This is the fastest way to lift the colour scheme of a competitor website, a design reference, or an app you have screenshotted on your phone.

Median-cut quantization splits the colour space by the channel with the largest range. If your image is dominated by greys, browns, or another low-saturation tone (photos of buildings, food shots, sepia images), the algorithm will split that dominant region into several similar buckets, producing a palette with multiple nearby tones. Lower the palette size to 4 or 5 to get a more diverse set, or click directly on the colourful accent areas for the brand colours.

Adobe Color and Coolors both require an account and limit the auto-extracted palette to 5 colours. This tool gives you 4 to 12 with one click, no signup, and adds pixel-exact picking on top. It also outputs OKLCH (modern perceptual colour space) alongside hex, RGB, and HSL, which Adobe Color and Coolors do not currently provide.

A logo on a transparent or single-colour background gives you the cleanest brand palette. For a brand built around a product, use a high-quality product shot on a neutral backdrop. For a brand built around mood, use a moodboard image (a single photo, not a collage). Avoid extracting from screenshots of websites you do not own, since the rendered colours may include anti-aliasing artefacts that pollute the palette with intermediate shades.

Need to design from the colors you just lifted?

Pair the image color picker with our hex-based color picker for harmonies, contrast checks, and color blindness preview.