Try it now — no sign-up needed
Copy HEX, RGB or HSL, with alpha when needed.
Choose image sampling or screen picking
The online color picker has two workspaces: Image color picker for files and screenshots, and Color & code for sliders or typed HEX, RGB and HSL values. Screen eyedropper is a separate button. It requires a secure context, a user action and a supporting browser; image selection remains available when it is unsupported.
- Choose a PNG, JPEG or WebP image, drag it into the image area, or paste a copied screenshot. Clipboard permission varies by browser.
- Keep Single pixel selected to read one decoded pixel. Zoom and pan to locate a small detail; the magnifier shows its immediate neighbours.
- Click or tap the image. Arrow keys move one pixel; Shift plus an arrow moves ten. Coordinates start at zero in the top-left corner.
- Copy the output you need. Use Save color for a reusable palette; saving is optional.
One pixel, an area average or an image palette?
Single-pixel sampling reads the full-resolution decoded image, independently of the preview size. The 3 × 3 and 5 × 5 modes average neighbouring pixels, weighted by alpha; near an edge, only pixels inside the image count. An average smooths noise but is not the exact color of any one pixel.
Image palette estimates representative colors from a thumbnail whose longest side is at most 160 pixels. It ignores fully or almost transparent pixels and merges similar colors, so a tiny accent can be missed. Choose 4, 6, 8 or 12 as the maximum number; an image with fewer distinct colors returns fewer swatches. Use the pixel sampler when a specific logo detail matters.
Keep transparency in the exported value
Six-digit HEX such as #FF0000 stores RGB only. Eight-digit HEX such as #FF000080 adds an alpha byte: 128/255, approximately 50.2% opacity. rgba(255, 0, 0, 0.5) expresses 50% opacity directly. The checkerboard is a transparency indicator, not part of the sampled image. Fully transparent pixels can lose their hidden RGB values during browser decoding.
HEX, RGB and HSL are different representations of a color, not different quality levels. This tool accepts hexadecimal values and numeric rgb()/rgba()/hsl()/hsla() notation; it does not interpret CSS variable names, named colors, CMYK or Pantone references. Invalid input leaves the current color unchanged.
Try a reproducible color check
Choose Try sample image to load the synthetic practice image included in the tool. In Single pixel mode, its initial centre coordinate (320, 200) is white, #FFFFFF. Press ArrowLeft once: coordinate (319, 200) is blue, #0000FF. Zooming does not change that sampled value. The lower-right area includes transparent and half-transparent patches for checking alpha.
For a code-only check, apply #3B82F6. RGB should read rgb(59, 130, 246), and the first color-combination swatch should retain exactly #3B82F6. Switching palette modes changes the generated companions, not the base color.
Why does the same image give different color codes?
Check whether you sampled the original image or a screenshot of it. Screenshots can include browser rendering, scaling, transparency compositing and display color management. JPEG compression and antialiased edges also create nearby colors. A 3 × 3 average is deliberately different from a single pixel. Compare the same coordinate, sampling mode and alpha before blaming the conversion.
ToolKnit reads pixels after the browser decodes them into an sRGB canvas. Embedded profiles and browser support can affect that conversion. This is not an ICC soft-proofing system, a raw-camera sampler, a print-separation tool or a physical paint matcher. For printing, confirm the production profile and physical proof separately.
Save a palette and export it for your project
Save up to 100 colors in this browser. Existing saved colors remain compatible. Delete a single swatch with its × button, or use Clear palette and confirm to remove all saved colors. CSS exports create numbered custom properties; JSON includes the sRGB color codes and RGBA components; PNG creates a labelled color card with a checkerboard behind transparent colors. Exports contain colors, not your source image.
Use the gradient generator to turn a chosen palette into a CSS gradient. If an image contains too many unrelated areas, crop the image first to focus palette extraction on the subject.
Check readable text, not just attractive combinations
Expand Preview text and check contrast, then enter an opaque background color. The current color becomes the foreground; transparent foregrounds are composited over that background before calculating the WCAG ratio. Black on white is 21:1. #777777 on white is about 4.48:1 and does not meet the 4.5:1 AA threshold for normal text. Pass/fail uses the unrounded ratio.
WCAG AA uses 4.5:1 for normal text and 3:1 for large text (at least 18 pt, or 14 pt bold). A color-ratio check alone does not certify a whole page: text size, focus states, controls, images and other accessibility requirements still matter.
Limits, privacy and recovery
Files are limited to 50 MiB. The decoded-image budget is 40 megapixels on desktop, or 12 megapixels on touch-oriented or lower-memory devices; neither dimension may exceed 16,384 pixels. The page shows its active budget. Available memory and browser canvas limits may be lower. Oversized or unreadable files produce an error without silently shrinking the source used for sampling; your last valid image remains available.
Image decoding, sampling, conversion and palette extraction run locally. Images are not uploaded or stored by this tool. Only colors you explicitly save are kept in localStorage; downloads remain on your device after you clear the palette. Ordinary website analytics and asset requests are separate. If clipboard access is denied, choose a local image instead.
Sources and browser requirements
- MDN: EyeDropper API — support, secure contexts and user gestures.
- WCAG 2.2: Contrast (Minimum) — text contrast thresholds and large-text definitions.