Color Picker from Image - Get the HEX Code of Any Pixel
Upload an image, point at any pixel, and read its exact HEX, RGB and HSL values. A pixel-grid magnifier shows what is under the crosshair, arrow keys nudge the sample one pixel at a time, and nothing leaves your browser.
将图片拖放到此处或点击上传
支持 JPG、PNG、GIF、WEBP、SVG
What This Color Picker Does
This is an eyedropper, not a palette generator: you decide which pixel is sampled, and the tool reports exactly what is stored there. The part worth explaining is how a reading is taken, because the obvious approach is subtly wrong. Drawing the whole image onto one canvas and reading pixels back from it fails on large photos - browsers cap total canvas area at roughly 16.7 million pixels, about 4096 by 4096, and a 24-megapixel camera file exceeds that easily. Scaling the image down to fit would make every sample an average of several original pixels, so the one thing an eyedropper must get right would be the first thing lost. Instead, sampling redraws only a small window around the pointer, straight from the decoded file, at exactly 1 to 1. Source rectangle and destination rectangle are the same size, so the browser copies pixels rather than resampling them, and the values you get are the file's own bytes no matter how large the image is. The preview you see may be scaled to fit the canvas limit or your screen, but nothing is ever sampled from it. That same window feeds the magnifier, which paints each source pixel as a 13-pixel square with grid lines between them and outlines the centre cell in black and white so it stays visible over any color. You need it: a 4000-pixel-wide photo laid out in a 720-pixel column puts roughly 5.6 image pixels under every screen pixel. Arrow keys move the sample exactly one source pixel and Shift plus an arrow moves ten, which is the only reliable way to land on a one-pixel border or a thin antialiased edge. Each pick reports HEX, RGB and HSL from the same 8-bit triple, plus 8-digit HEXA and RGBA when the pixel is not fully opaque. The real limit to know is color management: canvas discards the embedded ICC profile in most browsers, so values match what the browser paints rather than what a color-managed editor shows.
Why Pick a Single Color from an Image
Most color questions are about one specific spot, not about an image as a whole. Someone hands you a screenshot of a signed-off design and you need the exact button fill to reproduce it in CSS. A client sends a JPG of their logo and you need the brand red before you can build anything around it. You are matching a chart series to the header color in a slide deck. You are checking whether two swatches that look identical in a photo really are the same value, or whether one is two steps darker. In all of those, an automatic palette is the wrong answer - it would return the six colors that cover the most area, and the color you actually need might be a 40-pixel accent that no clustering algorithm would ever surface. Being able to point at the pixel is the whole job. It is also the fastest route when the source file is gone. Design systems drift, source files get lost, and a flattened PNG export is often the only surviving record of what a color was. Reading it back takes a second and needs no design software installed. The same applies to work that never involved a designer: a photographer sampling a skin tone before grading, a developer copying a background color out of a bug report screenshot, a teacher pulling colors out of a painting for a worksheet. Because everything runs locally, unreleased mockups and internal screenshots never leave your machine.
How to Get a Color from an Image
Four steps, and no account or install. Files are read directly by the page - nothing is uploaded to a server.
Drop an image on the upload area, choose a file, or paste one straight from the clipboard. JPG, PNG, WebP, GIF and SVG all work.
Move the pointer over the image. The magnifier shows the pixel grid around the crosshair and the panel updates live. On a touch screen, press and drag - the magnifier sits above your finger so it is never hidden.
Fine-tune with the arrow keys or the on-screen arrows: one press moves the sample exactly one source pixel. Switch to actual size if the image is being scaled down to fit the column.
Click, tap or press Enter to keep the color, then copy its HEX, RGB or HSL value. Kept colors stay in the recent list so you can copy any of them again.
Frequently Asked Questions
更多图片工具
探索其他强大的图片编辑工具
压缩图片
减小文件大小
调整大小
更改尺寸
裁剪图片
裁剪区域
格式转换
转换格式
照片编辑器
编辑照片
旋转图片
旋转图片
镜像翻转
水平/垂直翻转
添加水印
添加水印
添加边框
为图片加边框
圆角裁剪
添加圆角效果
滤镜调整
亮度对比度等
模糊面部
隐藏面部
马赛克
局部打码
去除背景
去除背景
提升质量
AI 提升
添加文字
在图片上加字
图片拼接
拼接多张图片
HTML 转图片
网页转图片
GIF 转图片
提取序列帧
裁剪空白
移除空白边缘
批量重命名图片
安全地批量修改文件名
圆形裁剪
将图像裁剪为圆形
黑白
将图像转换为灰度
分割图像
将图像切割为网格
合并图像
将多张图像合并为一张
更改DPI
设置图像DPI元数据
图像转Base64
将图像编码为Base64
图片转PDF
将多张图片合并成一个PDF
HEIC 转 JPG
将 iPhone 的 HEIC 照片转换为 JPG
EXIF 元数据移除器
查看并清除照片中隐藏的元数据,包括 GPS 位置信息
Favicon 生成器
全套图标加 HTML
色板
从图片中提取颜色
Base64 to Image
Decode Base64 back to an image
HEIC to PNG
Convert iPhone HEIC photos to lossless PNG
Text Behind Image
Put text behind the subject of a photo, entirely in your browser
Signature Maker
Draw a signature and download it as a transparent PNG
Signature Background Remover
Ink from paper, on transparency
Transparent Background Maker
Make a background transparent