Image Color Picker
Drop, paste, or open a photo or screenshot to grab HEX, RGB, HSL, and OKLCH codes. Pull palettes and check WCAG AA contrast right in your browser, with no uploads.
This tool needs JavaScript to run.
Drop an image here, or paste with Ctrl+V (⌘V on Mac)
Runs in your browser. Nothing is uploaded.
How to get a HEX code from a photo or screenshot
Drop, paste (Ctrl+V, ⌘V on Mac), or open an image, then click any spot to grab its HEX, RGB, HSL, OKLCH, and closest CSS name. Hover for a magnifier, zoom up to 32×, or nudge 1 pixel with arrow keys. Use 1×1 for screenshots and icons; for photos, 3×3, 5×5, or 11×11 averages an area.
On mobile, tap and drag the pin as a magnifier floats above your finger. In desktop Chrome and Edge, Pick from screen also works outside the browser; Firefox, Safari, and mobile browsers don’t have it. PNG, JPG, WebP, AVIF, BMP, SVG, and GIF (first frame) open locally. iPhone HEIC needs Safari 17+ or JPG conversion.
When to use HEX, RGB, HSL, or OKLCH
Go with HEX for the shortest code that works almost anywhere, or RGB when you need 0 to 255 red, green, and blue values. HSL splits hue, saturation, and lightness, so you can make a color lighter or darker by tweaking one number.
OKLCH uses lightness, chroma, and hue, basing lightness on human vision so colors with the same L look about equally bright. That makes balanced sets easier to build, and major browsers have supported it since May 2023. CMYK is only a formula estimate; convert it with your print shop’s color profile before printing.
Extract a color palette and check text contrast
Pull 4, 6, 8, or 10 colors from your image and see roughly how much each covers. Click any swatch to move the pin to its closest match and check if white or black text passes WCAG AA (4.5:1). Save every swatch, then copy your list as HEX, CSS variables, or JSON.
More from the Toolbox
- Reaction Time Test
Test your reaction time across three modes, with scores saved in your browser.
- Favicon Generator
Turn an image or 1 to 3 characters into website favicons, mobile icons, and HTML code.