Skip to content

Image Color Picker

Image Toolsβ€’Client-Side & Private

Click any pixel in a photo to read its HEX, RGB and HSL colour, extract the 8-colour palette, and export it as CSS variables β€” free, in-browser.

Tool workspace

Drop a photo here or click to upload

Click any pixel to read its colour; get the whole palette as CSS variables. Nothing is uploaded.

What it can and cannot do

  • Can: read the exact HEX, RGB and HSL of any pixel you click, extract the 8 dominant colours, and export them as CSS variables.
  • Note: sampled values come from the decoded image as the browser sees it β€” JPEG compression can shift a colour by 1–2 units from the original file's value.

Loading tool controls…

Files processed locally β€” never uploaded to our servers
Free Instant Private

Verify it yourself: press F12, open the Network tab, and use this tool β€” your files are never uploaded.

Image Color Picker at a glance

Price
Free
Account
Not required
File uploads
None β€” your files are never uploaded
Category
Image Tools

Who uses Image Tools?

Photographers, designers and online sellers who need to compress, resize or convert images without uploading them.

How to Use Image Color Picker

Follow these simple steps to get instant results in your browser.

1

Upload a Photo

Drop a JPG, PNG or WebP image. Its 8-colour palette is extracted automatically.

2

Click Any Pixel

Click the photo to sample that exact pixel β€” HEX, RGB and HSL appear with copy buttons.

3

Copy or Export

Click any palette swatch to copy its HEX, or copy/download the whole palette as a :root CSS variables block.

πŸ’‘

What is Image Color Picker & How Does It Work?

The Image Color Picker reads the exact colour of any pixel in a photo: click the image and it shows the HEX, RGB and HSL values, with one-click copy buttons. It also extracts the photo's 8-colour palette and exports it as CSS variables.

Sampling reads the decoded pixel straight from the canvas, so the value is the colour as the browser sees it. The palette groups similar colours and picks the eight most common distinct ones β€” the colours that actually dominate the photo. Click any swatch to copy its HEX.

One honest caveat: JPEG compression shifts colours by 1–2 units per channel, so a sampled value can differ slightly from the colour in the original design file. Sample a PNG export for exact brand colours.

⚑

Key Features & Capabilities

βœ“

Click-to-Sample

Reads the exact pixel you click β€” HEX, RGB and HSL, with one-click copy for each.

βœ“

8-Colour Palette

The dominant colours of the photo, extracted by quantisation and diverse selection.

βœ“

CSS Variables Export

A :root block with --color-1 to --color-8, ready to paste into a stylesheet, plus a palette.css download.

βœ“

Click Any Swatch to Copy

Every palette swatch copies its HEX value to the clipboard.

Pro Tips

  • β€’Bookmark this tool for instant one-click access anytime.
  • β€’Drag and drop files directly onto the input surface for fastest handling.
  • β€’All processing happens in your browser session for maximum speed and data safety.

🎯 Common Use Cases

Match a Brand ColourSample the exact colour from a logo photo to reuse it in a design.
Build a Palette From a PhotoPull the dominant colours from a landscape photo for a website theme.
Name That ColourFind the HEX of a colour you can see but cannot name.
Match Paint to a PhotoSample a wall colour from a room photo to find a matching paint shade.
πŸ“

Image Color Picker - RGB to HSL

Formula Equation:
Lightness = (max(R,G,B) + min(R,G,B)) / 2; hue from the dominant channel

HSL describes a colour as hue (0–360Β° around the colour wheel), saturation (0–100%) and lightness (0–100%). The picker converts the sampled RGB pixel to HSL so designers can use whichever form their stylesheet needs.

✏️

Worked Example

  1. 1Sampled pixel: rgb(255, 0, 0)
  2. 2HEX #FF0000, HSL hsl(0Β°, 100%, 50%)
  3. 3Sampled pixel: rgb(37, 99, 235) β†’ #2563EB, hsl(221Β°, 83%, 53%)
πŸ“š

Sources & Further Reading

Frequently Asked Questions about Image Color Picker

Frequently asked questions

Upload a photo and click any pixel. The tool reads that exact pixel and shows its HEX, RGB and HSL values, with one-click copy buttons. The sampled colour is the pixel as the browser decoded it.

The tool scans the image, groups similar colours, and picks the 8 most common distinct ones β€” the colours that actually dominate the photo. Click any swatch to copy its HEX, or export all eight as CSS variables.

JPEG compression shifts colours by 1–2 units per channel, so a sampled value can differ slightly from the colour in the original design. For exact brand colours, sample a PNG export of the design instead of a JPEG.

A :root block with eight variables, --color-1 to --color-8, one per palette colour. Copy it into your stylesheet and use it as var(--color-1) anywhere in your CSS.

Yes. Upload any image, including a screenshot of a website, app or slide. Click any pixel to read its colour β€” this is the quickest way to reuse a colour you saw on screen.

They describe the same colour three ways. HEX (#3A7BFF) is the compact code used in CSS and design tools. RGB (58, 123, 255) gives the red, green and blue amounts from 0 to 255. HSL describes hue, saturation and lightness, which is handy when you want a lighter or darker version of the same colour.

Complementary utilities for your workflow

View all β†’
You are here

Image Color Picker

Pick HEX, RGB & HSL colours from any photo.

Current tool

Color Converter

Convert colors between HEX, RGB, HSL, and CMYK models.

Try tool
Popular

Image Enhancer

Enhance photo clarity, contrast, and sharpness in your browser.

Try tool