🎨

Image Color Palette

Extract the most frequent colors from an image

No file selected.

Image Color Palette — what it does

Extract the most frequently occurring colours from an image and see them as a palette with their values, choosing how many colours to pull. It answers the practical design question — what colours is this picture actually made of — with counted evidence instead of an impression.

Worked example

The palette extracted from a 400 × 100 PNG that contains exactly four flat status colours (red #DC2626, amber #F59E0B, green #16A34A, blue #2563EB), with the slider set to 8.

Colour in the imageSwatch shownRGB shown
Red #DC2626#E02020RGB 224, 32, 32
Amber #F59E0B#FFA000RGB 255, 160, 0
Green #16A34A#20A040RGB 32, 160, 64
Blue #2563EB#2060E0RGB 32, 96, 224

Only four swatches came back although the slider asked for eight, and none matches the source exactly: each channel is rounded to the nearest multiple of 32 before counting, so #DC2626 is reported as #E02020. The status line read 4 colors.

When this tool helps

  • Building a page or slide palette that harmonises with a hero photograph.
  • Pulling brand colours out of a logo image when no style guide is available.
  • Choosing a background tone that sits naturally behind a specific image.

How to use it

  1. Choose the image.
  2. Set how many colours to extract.
  3. Review the extracted swatches.
  4. Copy the colour values you need.

Accuracy, limits, and good practice

  • Five to eight colours is the useful range; beyond that you get near-duplicate shades that add nothing to a palette.
  • Photographs are dominated by mid-tones, so the strongest accent in a picture may not be its most frequent colour.
  • JPEG compression shifts colours slightly, so a value sampled from a compressed image may be a hair off the original brand colour.
  • Extract from the crop you will actually use. A palette taken from the full photo can be dominated by an area the final layout never shows.

Frequently asked questions

Why is my brand colour missing?

Extraction counts frequency. A logo occupying two percent of a photo loses to sky and skin tones every time — crop to the logo first.

Can I convert the results to other notations?

Yes, take a value into the colour converter for HEX, RGB and HSL forms.

Is this accessible-contrast aware?

No. Check any text and background pairing you build from the palette against contrast requirements separately.

Does it group similar shades together?

Frequent colours are reported as they occur, so a photo with a gradient can yield several near-identical entries. Pick the distinct ones by eye.

Why do I get fewer colours than the slider asks for?

The slider (3–12) is a maximum. The image is shrunk to an 80 × 80 thumbnail, each channel is rounded to a multiple of 32 and identical results are counted together; if fewer distinct buckets exist, you get fewer swatches. Pixels that are more than about 30 % transparent are skipped.

Does the palette update when I move the slider?

Yes, immediately and without choosing the file again: the counts are recomputed from the stored image each time the slider moves, ordered most frequent first. Clicking a swatch copies its HEX value to the clipboard.

Related tools on this site

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

圖片配色提取能做什麼

從圖片中抽出出現頻率最高的顏色,並以色票與數值呈現,抽幾個由你決定。它用計數過的證據,而不是主觀印象,回答設計上的實際問題:這張圖到底是由哪些顏色組成的。

實際範例

從一張 400 × 100、恰好只有四種純色狀態色(紅 #DC2626、琥珀 #F59E0B、綠 #16A34A、藍 #2563EB)的 PNG 提取配色,滑桿設為 8。

圖中的顏色顯示的色票顯示的 RGB
紅 #DC2626#E02020RGB 224, 32, 32
琥珀 #F59E0B#FFA000RGB 255, 160, 0
綠 #16A34A#20A040RGB 32, 160, 64
藍 #2563EB#2060E0RGB 32, 96, 224

滑桿要求 8 色卻只回傳 4 個色票,而且沒有一個與來源完全相同:計數前每個色版都先四捨五入到 32 的倍數,所以 #DC2626 被報成 #E02020。狀態列顯示 4 colors。

什麼時候用得上

  • 建立與主視覺照片協調的頁面或投影片配色。
  • 沒有品牌規範文件時,從商標圖檔中取出品牌色。
  • 為特定圖片挑選看起來自然的背景色調。

使用步驟

  1. 選擇圖片。
  2. 設定要抽取的顏色數量。
  3. 檢視抽出的色票。
  4. 複製需要的顏色數值。

精確度、限制與實務建議

  • 五到八色是實用範圍,再多就會得到幾乎相同的近似色,對配色沒有幫助。
  • 照片以中間調為主,因此畫面中最搶眼的重點色未必是出現最多的顏色。
  • JPEG 壓縮會讓顏色略為偏移,從壓縮圖取到的值可能與原始品牌色差一點點。
  • 請從實際會用到的裁切範圍取色。從整張照片取出的配色,可能被最終版面根本不會出現的區域主導。

常見問題

為什麼抽不到我的品牌色?

抽取依頻率計算。只佔照片百分之二的商標永遠贏不過天空與膚色——請先裁到商標範圍。

結果可以轉成其他格式嗎?

可以,把數值帶到顏色轉換工具即可得到 HEX、RGB 與 HSL。

有考慮無障礙對比嗎?

沒有。用這組配色搭出的文字與背景組合,請另外檢查對比度是否合規。

會把相近色合併嗎?

常見顏色是照實際出現情況回報的,帶漸層的照片可能給出好幾個幾乎相同的色票,請自行挑出有區別的。

為什麼得到的顏色比滑桿設定的少?

滑桿(3 到 12)是上限。圖片會先縮成 80 × 80 的縮圖,每個色版四捨五入到 32 的倍數,相同結果合併計數;若不同的色桶不夠多,色票就會比較少。透明度超過約 30 % 的像素會被略過。

移動滑桿時配色會更新嗎?

會,立即更新且不必重選檔案:每次滑桿移動都會從已載入的圖片重新計數,依出現次數由多到少排列。點一下色票會把它的 HEX 值複製到剪貼簿。

本站相關工具

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