← 返回工具首页 | Olutil Image Tools
🌐 简体中文

主色调提取

从任意图片提取主色调,获取 HEX 色板及占比。 100% 本地处理

🎨 上传图片以提取其颜色

使用方法

  1. Upload an image — 点击、拖拽或粘贴。
  2. 设置颜色数量 — 从 2 到 16。
  3. 切换忽略背景 — 开启时跳过近白和全透明像素,使色板反映主体而非背景。
  4. 提取 — 上传时自动运行;点按钮重新运行。
  5. 复制或下载 — 点击任意色块的 HEX 复制,或下载色板为 PNG 条带。

色板如何计算

Each image is downsampled to at most 200×200 pixels for speed, then every remaining pixel is fed into a median-cut algorithm: pixels are recursively split along the channel with the widest range, at its median, until the requested number of color buckets is reached. Each bucket is averaged into one color and ranked by how many pixels it represents.

功能特性

相关工具