LocalExcelTool
はじめる

カラーパレット抽出

画像から dominant な 8 色を抽出(hex + 占比)。

カラーパレット抽出とは

カラーパレット抽出ツールは、アップロードした画像から主要な 8 色を抽出し、hex コードと画面占比を一覧表示します。内部では 64×64 にダウンサンプリングして RGB 8×8×8 のカラーバケットで量子化しています。デザインのカラースキーム作成や写真の雰囲気確認に。ブラウザ内で完結し、ファイルは送信されません(5MB まで)。

🔒 処理はすべてブラウザ内で完結し、データは送信されません。

このツールの前提

処理場所
このページのブラウザ内(JavaScript / Canvas)
アップロード
なし — ファイルは端末の外に出ません
サイズ上限
25 MB
オフライン
ページを開いた後は通信不要

Dominant colour is a statistical claim

Pixels are sampled and grouped, and the largest clusters are reported with their share. The sampling step matters: averaging every pixel of a photo produces a muddy grey-brown that appears nowhere in the image, which is why cluster-based extraction rather than a mean is what a palette tool must do.

Share percentages are worth reading. A palette where the top colour is 40% is a coherent image; one where five colours are each 8% is a busy image where no single colour will work as a theme.

What a palette does not tell you

It gives you colours present, not colours usable. A dominant pale pastel fails as text on white; a vivid accent may occupy 2% of the pixels and be the only usable brand colour. Ranking by area and ranking by usefulness are different questions.

Perceived colour also drifts in small areas: a 20×20 patch of colour is judged differently from the same colour across a whole wall. Extracted values are accurate samples and poor previews of how the colour will read at scale.

From palette to system

The useful next step is contrast, not more swatches. Each candidate needs its ratio measured against the actual background it will sit on, and the ones that fail are excluded regardless of how well they represent the photo.

For a generated theme, lightness variation matters more than hue: a single hue at four lightness levels gives a coherent UI, while four arbitrary extracted colours give a palette that cannot express states like hover, disabled or muted without inventing new values.

使い方

  1. 1.画像ファイルを選ぶ
  2. 2.実行してパレットを生成
  3. 3.hex コードをコピーしてデザインに使用

他の方法との比較

同じ変換をする方法は 3 つあります。ブラウザ内(このページ)、サーバー側の変換サービス、デスクトップアプリ。差がつくのは速度ではなく、ファイルがどこへ行くかと、無料でどこまでできるかです。

観点このツールサーバー側の変換サービス
ファイルの処理場所このページのブラウザ内ベンダーのサーバー(アップロード後)
アカウント不要多くの場合必要(無料枠の制限解除に登録を求める)
無料で扱えるサイズ25 MB / 回数制限なし数ファイル/時間、または 5〜10MB 程度で課金 wall
料金無料。Pro は月 $9(大きいファイルと AI 機能のみ)サブスクが一般的。おおむね月 $7〜15(2026 年 11 月時点)
オフライン一度開けば通信不要不可
20MB を処理し始めるまで待ち時間なし(アップロードが無い)アップロードが支配的(10Mbps 上りで約 16 秒)
保証できないこと再エンコードでわずかに品質が落ち、EXIF などのメタデータは削除されます同じ(変換の原理は変わらない)

サーバー側のサービスが優れている点は明確にあります。巨大なファイル、チームでの共有、変換履歴の管理、スクリプトからの自動化。逆に「1 回だけ、手元のファイルを別形式にしたい」という今回の用途では、アップロードの待ち時間と登録の手間だけが増えます。

よくある質問

抽出方法は?

64×64 に縮小してから RGB 各 8 階調の 512 バケットに量子化し、出現数の多い順に 8 色を平均色として返します。

透過画像は?

半透明ピクセル(アルファ 50% 未満)は除外して計算します。

この変換で失われるもの

画像処理は Canvas 上で行います。デコードし、描画し、再エンコードしてダウンロードとして返します。アップロードはないため、20MB の写真でも数秒待つだけです。再エンコードでは必ず多少の品質低下があります。これはデスクトップソフトを含むすべてのツールに共通です。

その他の画像処理