图片配色提取
提取主要 RGB 颜色及其十六进制值。
输入
提示:按 Ctrl + Enter 运行
已保存的设置
下方的详细帮助目前仅提供英文版。
关于此工具
Designers, marketers and decorators often want the main colours of a photo, logo or artwork: to build a matching palette for a website, choose paint, or create social media graphics that fit a brand. This tool reduces the image to the number of colours you choose and lists them as hexadecimal codes, ordered by how much of the image each covers.
The hex codes can be pasted directly into CSS, design apps and presentation software.
使用方法
- Choose an image.
- Choose how many colours to extract (2 to 16; 5 or 6 is typical).
- Run it and copy the hex codes.
计算原理
The image is reduced to at most 300 × 300 pixels for speed and colour-quantized with Pillow’s median-cut algorithm to the requested number of colours. Each colour’s share is the number of pixels assigned to it divided by the total.
计算示例
A café owner photographs the shop’s tiled counter and extracts 5 colours. The result lists a deep teal covering about a third of the picture, a cream, a warm wood brown, a dark charcoal and a brass yellow, with hex codes she gives to her web designer.
局限性
- Up to 16 colours.
- Dominance is based on pixel area, not visual importance.
- Processed on the server; the image is deleted afterwards.
最后更新:
常见问题
Why are the colours slightly different from what I see?
Quantization averages similar shades; try more colours for finer detail.
Can I get RGB values?
Hex codes encode RGB: #1a7f86 is R 26, G 127, B 134.
Does it include transparent areas?
Transparent pixels are treated as white.
故障排除
Background colour dominates.
Crop to the subject first.
Two very similar colours appear.
Reduce the colour count.
The palette seems dull.
Shadows and highlights average out; boost contrast first.
隐私 & 免费使用
我的输入会被保存吗?
此工具会将文件或输入上传到我们的隔离处理器。任务完成后会删除工作文件。请勿提交敏感或机密材料。
这个工具免费吗?
是的。无需注册或付费。