🎨

Image Color Picker

Click an image to identify HEX and RGB colors

Click anywhere on the image to pick a color.

Selected color
—
—

Image Color Picker — what it does

Load an image, click anywhere on it, and read the exact colour under the cursor as HEX and RGB. It is an eyedropper for pixels you can see but cannot access — a colour in a screenshot, a shade in a photograph, a tone from a design someone sent as a flattened image.

Worked example

Clicks on a 400 × 100 PNG of four flat status colours, then on a 1600 × 1200 photo to show the effect of the preview being scaled down to 900 px wide. Positions are canvas pixels.

ImageClick positionHEX shownRGB shown
status-colours.png, 400 × 100(50, 50)#DC2626rgb(220, 38, 38)
status-colours.png, 400 × 100(350, 50)#2563EBrgb(37, 99, 235)
team-photo.jpg, 1600 × 1200, shown at 900 × 675(0, 0)#000078rgb(0, 0, 120)
team-photo.jpg, 1600 × 1200, shown at 900 × 675(899, 674)#FEFF78rgb(254, 255, 120)

The two values are plain text you can select and copy, HEX in upper case; the swatch next to them fills with the same colour.

When this tool helps

  • Matching a website's colours from a screenshot when you have no access to its CSS.
  • Sampling a colour from a photograph to use as a background or accent in a layout.
  • Reading brand colours out of a supplied image when no specification came with it.

How to use it

  1. Choose the image.
  2. Click anywhere on it to sample that pixel.
  3. Read the HEX and RGB values.
  4. Copy the value into your design or code.

Accuracy, limits, and good practice

  • Sample from a flat area rather than an edge; anti-aliased boundaries blend two colours and give a value that exists in neither.
  • JPEG artefacts vary colour slightly across a region that looks uniform — sample a few points and take the most consistent value.
  • Screenshots taken with colour management or filters applied may not match the source's true colour values.

Frequently asked questions

Can I pick an average colour for an area?

This samples a single pixel. For the dominant colours across the whole image, use the colour palette extractor.

Why does the same colour look different elsewhere?

Display profiles and surrounding colours change perception. The numeric value is the reliable reference, not the appearance.

Does it work on transparent images?

Sampling a transparent pixel gives the colour composited against the page background rather than a meaningful source value.

Is the colour read from the original pixels?

From the preview canvas. Images wider than 900 px are drawn at 900 px wide (1600 × 1200 becomes 900 × 675), so each canvas pixel blends roughly two source pixels and the reading can differ slightly from the file. Images 900 px wide or narrower are drawn 1:1 and read exactly, as the #DC2626 row shows.

Can I sample by hovering instead of clicking?

No. Only a click samples; moving the mouse does nothing, and the readout keeps the last clicked value until the next click. Clicking the empty canvas before a file is loaded reads a blank pixel and shows #000000.

Related tools on this site

Everything above runs inside this page. Image Color Picker needs no account, no upload, and no server round trip — close the tab and nothing is left behind.

圖片取色器能做什麼

載入圖片、在任意位置點一下,即可讀到游標下那個像素的 HEX 與 RGB 值。它是為「看得到卻取不到」的像素準備的滴管——截圖裡的顏色、照片中的色調,或別人只給了平面圖檔的設計配色。

實際範例

先在一張 400 × 100、含四種純色狀態色的 PNG 上點擊,再在 1600 × 1200 的照片上點擊,顯示預覽被縮到 900 px 寬的影響。座標是畫布像素。

圖片點擊位置顯示的 HEX顯示的 RGB
status-colours.png,400 × 100(50, 50)#DC2626rgb(220, 38, 38)
status-colours.png,400 × 100(350, 50)#2563EBrgb(37, 99, 235)
team-photo.jpg,1600 × 1200,顯示為 900 × 675(0, 0)#000078rgb(0, 0, 120)
team-photo.jpg,1600 × 1200,顯示為 900 × 675(899, 674)#FEFF78rgb(254, 255, 120)

兩個數值都是可以選取複製的純文字,HEX 為大寫;旁邊的色塊會填上同一個顏色。

什麼時候用得上

  • 拿不到網站 CSS 時,從截圖比對出它的顏色。
  • 從照片取樣顏色,作為版面的背景或重點色。
  • 對方只給了圖片、沒附規範時,從中讀出品牌色。

使用步驟

  1. 選擇圖片。
  2. 在任意位置點擊取樣該像素。
  3. 讀取 HEX 與 RGB 值。
  4. 把數值複製到設計或程式中。

精確度、限制與實務建議

  • 請取平整區域而非邊緣;抗鋸齒邊界混合了兩種顏色,取到的值兩邊都不是。
  • JPEG 壓縮痕跡會讓看似均勻的區域顏色略有差異——多取幾點,採最一致的值。
  • 套用色彩管理或濾鏡後截的圖,可能與來源的真實色值不同。

常見問題

可以取一個區域的平均色嗎?

此工具取單一像素。要取整張圖的主要顏色,請用配色提取工具。

為什麼同一個顏色在別處看起來不同?

螢幕色彩描述檔與周圍顏色會影響感知,可靠的參考是數值,不是外觀。

透明圖片可以取色嗎?

取到透明像素時,得到的是與頁面背景合成後的顏色,並非有意義的來源色值。

顏色是從原始像素讀取的嗎?

是從預覽畫布讀取。寬度超過 900 px 的圖片會以 900 px 寬繪製(1600 × 1200 變成 900 × 675),每個畫布像素大約混合了兩個來源像素,讀數可能與檔案略有出入。900 px 以內的圖片以 1:1 繪製、讀取完全精確,如 #DC2626 那列所示。

可以用滑鼠移過去取色,不用點擊嗎?

不行。只有點擊才會取樣;移動滑鼠沒有作用,讀數會保留上一次點擊的值直到下次點擊。尚未載入檔案就點擊空白畫布,會讀到空像素而顯示 #000000。

本站相關工具

以上步驟全部在這個頁面內完成,圖片取色器 不需要註冊、不上傳檔案、也不經過伺服器,關閉分頁後不會留下任何資料。