Skip to content
QueenNexa

Free tool

Image Color Picker & HEX to RGB Converter

Pick any color from a photo, convert HEX to RGB and HSL, and pull a color palette out of an image. Everything runs in your browser and nothing is uploaded.

Convert a color

  • HEX
  • RGB
  • HSL
  • CMYK

Pick a color from an image

Runs entirely in your browser. Nothing you type or upload is sent to our servers.

How to pick a color from an image

  1. Choose an image from your device. It opens right in the page and is not uploaded.
  2. Click or tap the part you want. The magnifier shows the surrounding pixels so you can aim precisely.
  3. Copy the HEX, RGB, HSL or CMYK value, or take a color from the automatic palette.

HEX, RGB and HSL: which one to use

HEX, such as #1E90FF, is a compact way to write the red, green and blue amounts in base 16 and is the usual choice in CSS and design tools. RGB writes the same three amounts from 0 to 255. HSL describes a color by hue (the position on the color wheel, 0 to 360), saturation and lightness, which makes it easier to build a lighter or duller shade by changing one number.

CMYK values here are a simple mathematical conversion from RGB. Print shops convert using a specific ink and paper profile, so use their numbers for production work.

Getting reliable colors from photos

One pixel in a photograph is often noise. Sample a few nearby spots and compare, or use the palette, which averages groups of similar pixels. Colors also shift with the color profile and with JPG compression, so treat a picked value as an accurate reading of this file, not a guarantee of how a printed or branded color will look.

If the file is in an unusual format, convert it first with the image format converter. To check that a text and background pair is readable, compare the contrast ratios shown under the converter above: WCAG asks for at least 4.5 to 1 for normal text.

Frequently asked questions

How do I get the color of a pixel in an image?

Choose your image, then click or tap the spot you want. The page reads that pixel and shows its HEX, RGB, HSL and CMYK values with copy buttons. Hover or drag to see the magnifier, and use the arrow keys on the image to move one pixel at a time.

How do I convert HEX to RGB?

Type or paste a HEX code such as #1E90FF into the color field. The RGB value appears immediately, here 30, 144, 255, along with HSL and CMYK. You can also paste values like rgb(30, 144, 255) or hsl(210, 100%, 56%) and convert in the other direction.

Is the color I pick exactly what is in my file?

For images up to 4,000 pixels on the longest side, yes: the page reads the decoded pixel directly. Larger images are scaled down to fit before you pick, so a color can differ slightly. Photos also carry compression noise, so neighboring pixels often differ by a few points.

Why does a color look different from the one in my design tool?

Browsers read images in the standard sRGB range. If a file uses another color profile, such as Display P3, the values here are the converted sRGB numbers, which can differ a little from what a profile-aware design app reports.

How is the palette chosen?

The palette uses median cut: the page groups similar colors from a sample of your pixels, splits the groups that span the widest range, and reports the average of each group with the share of the image it covers. It describes dominant colors and is not a design recommendation.

Is my image uploaded to a server?

No. The picture is drawn on a canvas inside your browser tab and every calculation happens on your device. Analytics record only that the tool was used, never the picture or the colors you pick.

Link to this tool

Found it useful? Copy a link for your page, newsletter or documentation.

Get new tools and guides by email

Optional. The tool above works without signing up.

One email every Tuesday. Free, and you can unsubscribe in one click.

More free tools

Browse all image tools or the full list of free tools.