Color Picker from Image

: Pick a color visually or from an image, then copy it as hex, rgb, hsl or oklch
Pick
Read as hex
RecentColours you copy or pick from an image show here until you reload.
Need a contrast check or a shade scale? Use the Contrast Checker or the Shade Generator.
Formats
hex
#3b82f6
rgb
rgb(59 130 246)
hsl
hsl(217.2 91.2% 59.8%)
oklch
oklch(0.6231 0.188 259.81)
From image
Drop an image here, paste one, or use Open file.Hover to read a pixel; click or tap to pick it.

Find a colour by eye on a saturation and value square, or read it off a pixel in your own image, and copy the result in the format your stylesheet wants. For a design you only have as a screenshot, the image section tells you what the colour actually is.

  1. Under From image, drop a file anywhere on the page, press Open file, or paste a copied image with Ctrl+V or Cmd+V. A paste is ignored while the cursor is in a text field.
  2. Move the pointer over the image. A small swatch shows the hex and position of the pixel underneath without changing your colour.
  3. Click or tap the pixel you want. The picker moves there, including the pixel's alpha, and the colour joins Recent.
  4. Adjust it if you need to: drag in the square, or use the Hue and Alpha sliders. The Colour field also takes typed values, and the swatch beside it opens your system's colour picker.
  5. In Formats, press the copy icon on one row, or Copy all for every row (Ctrl+C copies them too while nothing is selected); Copy hex on the Pick pane copies the hex value.

The numbers behind one spot in the picker: this hue slider position, this point in the square and this alpha give the rows below.

Input
hue: 217
saturation: 76
value: 96
alpha: 80
Output
hex    #3b82f5cc
rgb    rgb(59 130 245 / 0.8)
hsl    hsl(217.1 90.3% 59.6% / 0.8)
oklch  oklch(0.6224 0.1867 259.7 / 0.8)

Is my image uploaded when I pick a color from it?

No. The file is decoded by your browser and drawn to a canvas on the page, and the pixel is read from that canvas. Clear on the From image pane empties it, and a reload discards it.

Why does the eyedropper give a different color than the image section?

The eyedropper reads your screen, after zoom, scaling and your display's colour handling. The image section reads the file's pixels. For the value stored in the file, use the image section.

How do I get an 8-digit hex with transparency?

Lower the Alpha slider. The hex row becomes 8 digits, with the last two holding alpha, so 50% ends in 80.

Runs entirely in your browser. Nothing is uploaded.