Color Picker & Converter

Pick colors from any image and convert between HEX, RGB and HSL. 100% local.

Pick from image Click anywhere on the photo to sample its color
HEX#000000
RGBrgb(0, 0, 0)
HSLhsl(0, 0%, 0%)
HEX / RGB / HSL Converter Type any format - the others update
HEX
RGB
HSL

Color Picker & Converter / 颜色取色工具

The Color Picker lets you sample the exact color of any pixel in an image that never leaves your device, and convert between the three color formats the web actually uses: HEX, RGB and HSL. 颜色取色工具可以从任意图片上精确取色(图片不会上传),并在 HEX、RGB、HSL 三种格式之间互转。Click your way through a photo, build a palette, and copy values straight into your CSS or design tool.

Pick a color from any image / 从图片取色

Upload a photo, screenshot, product-page capture, or design draft — then simply click anywhere on it. The tool reads the pixel under your cursor locally and shows its HEX, RGB and HSL values, each with one-click copy. Every color you sample is added to the palette strip, so you can collect a full color set for a page, a campaign, or a brand in under a minute. 上传图片后在图上点击即可取色,取样结果自动加入色板,方便整套页面/主视觉配色。

HEX, RGB and HSL in one place

  • HEX (#3A7BD5) — compact, the web standard for CSS and design tools 网页与设计的标准写法
  • RGB (58, 123, 213) — how screens actually mix light RGB 屏幕实际混色方式
  • HSL (213°, 62%, 53%) — hue / intensity / lightness, the format that matches how people reason about color HSL 更贴近人对色彩的直觉

Type into any field of the converter and the other two update instantly — useful when a spec sheet hands you HSL but your CSS expects HEX, or a design tool only accepts RGB.

Use cases / 使用场景

  • Cross-border listings: sample a brand's palette from its site and keep your product photos and mockups on-brand 跨境 listing 配色
  • Design handoff: recover exact values from a client's mockup image instead of guessing 设计稿还原色值
  • Front-end debugging: confirm what color a button actually renders as on screen 前端调试
  • Contrast checks: read HSL lightness to get an instant feel for readability 对比度直觉检查

Privacy / 隐私说明

The image is decoded and sampled entirely inside your browser — no upload, no tracking, and it keeps working offline. 图片在浏览器本地解码取色,不上传、不追踪,断网可用。

FAQ / 常见问题

Q: Why does the color I picked look slightly off? / 取的颜色看着有色差? — JPEG photos carry compression artifacts, and displays add their own color profile. For exact values, pick from the original PNG/TIFF file where possible. JPEG 有压缩色差,尽量用原图取色。

Q: Can I use very large photos? / 大图可以用吗? — Yes. The canvas API handles images with several thousand pixels on any modern device. 支持,现代设备处理几千像素的图没有问题。

Q: How do I use the palette in CSS? / 色板怎么用? — "Copy Palette" gives you space-separated HEX values; paste them straight into your stylesheet or design tool. 复制色板为空格分隔的 HEX 值,直接粘进 CSS 或设计工具。

Related tools / 相关工具

  • EXIF Remover — strip location data from the images you share 图片 EXIF 清除
  • Hash Calculator — verify design-file integrity 哈希校验
  • Data Masking Tool — redact PII before posting screenshots 数据脱敏
  • Regex Builder — build & test regexes with plain-language questions 正则生成