Color Picker

What Is a Color Picker?

A color picker is a visual tool for selecting and converting colors across multiple formats. Instead of guessing HEX codes or memorizing RGB values, you point at the colour in an image and copy its value as HEX, RGB or HSL.

This one picks colours from an image: upload a photo, screenshot or logo (or use a sample gradient), hover to see the exact pixel in a magnifier, and click to add it to a palette. It shows HEX, RGB and HSL, and copies the palette as CSS variables. Everything runs in your browser; the image is not uploaded anywhere.

Understanding Color Formats

HEX — the most common web format. Six hexadecimal digits representing red, green, and blue (#FF6B6B). Compact and widely supported. RGB — decimal values from 0-255 for each channel. Easier for programmatic manipulation. HSL — hue (0-360°), saturation (0-100%), lightness (0-100%). The most intuitive format for human color selection because you can adjust brightness and saturation without changing the base hue.

How to Use This Color Picker

  1. Upload an image — Drop an image on the page or choose one (any format your browser opens), or click a sample gradient.
  2. Hover to inspect — Move over the image; the magnifier shows the 9 × 9 pixels around the cursor and the values of the centre pixel.
  3. Click to save — Each click adds that pixel to the palette (up to 20 colours, no duplicates).
  4. Copy your colours — Click a value to copy it as HEX, RGB or HSL, or copy the whole palette as CSS variables.

Worked example: picking a brand colour from PNG vs JPEG

The tool reads one pixel at full resolution from the image you upload (no averaging), so what you get depends on the file. On October 12, 2026 we drew a #FF3366 banner with white "SALE" lettering, saved it as PNG and as JPEG at quality 90 and 75, and read every pixel the way this page does (canvas drawImage, then getImageData) in Chromium.

FileFlat area away from the textRed pixels in the lettering areaDistinct colours there
PNG100% exactly #FF336698% exact (the rest are anti-aliased letter edges)91
JPEG quality 90100% exact67% exact1,266
JPEG quality 75100% exact66% exact1,832

Frequently Asked Questions

What is a color picker?
A tool for getting the exact code of a colour. This one picks from an image you upload: hover to inspect a pixel, click to save it, and copy it as HEX, RGB or HSL. To choose a colour from a spectrum instead, use the OKLCH Color Picker.
What is the difference between HEX and RGB?
HEX uses six hexadecimal digits (#FF6B6B) while RGB uses decimal values (rgb(255, 107, 107)). They represent the same color space — HEX is more compact for CSS, while RGB is easier to manipulate in code.
What is HSL color?
HSL stands for Hue (color angle 0-360°), Saturation (intensity 0-100%), and Lightness (0-100%). It's more intuitive because adjusting lightness or saturation keeps the base hue consistent, unlike RGB where changing brightness requires adjusting all three channels.

📖 Learn More

Related Article HTML Color Codes Explained →
What color format should I use in CSS?+
Hex (#FF6B6B) is the most common and compact. RGB/RGBA is needed when you want alpha transparency. HSL is best when you need to programmatically adjust lightness or saturation. Modern CSS also supports oklch() for perceptually uniform colors. All formats render identically in browsers.
How do I find the hex code of a color?+
Use a color picker tool like this one to visually select the color and read its hex code. You can also use browser DevTools (inspect an element and click its color swatch), the EyeDropper API in JavaScript, or screenshot tools with color sampling capabilities.

📖 Learn More

Related Article How to Pick Colors from Your Screen →

Built by Derek Giordano · Part of Ultimate Design Tools

Privacy Policy · Terms of Service