Color Picker from Image

NewPopular

Use ToolMint Color Picker from Image to sample exact source pixels from an uploaded JPG, PNG or WebP image and copy HEX, RGB, RGBA, HSL, HSLA and related values. The tool also extracts dominant palettes, checks white and black text contrast, exports saved colors and processes the image locally in your browser without uploading it to ToolMint.

6 min read Works in browser Privacy first

Upload an image

JPG, PNG or WebP. One image at a time, up to 25 MB and 40 MP.

Drop an image here, or click to browse

Mobile photo libraries are supported through your browser file picker.

After upload, tap anywhere on the image to pick a color.

Selected color

Copy exact values, check contrast and save colors to a palette.

Screen picking depends on browser support.

Pick from screen is not supported in this browser. Tap the uploaded image to pick a color.

No pixel selected yet

Upload an image and click a pixel to see HEX, RGB, HSL, alpha, CMYK and contrast values.

Your image is processed locally in your browser. ToolMint does not upload or store your image or selected colors.

Extract dominant colors

Downsample the image locally and find representative colors while skipping fully transparent pixels.

Extracted colors will appear here after an image is loaded.

Saved palette

0 of 24 colors saved. Click a swatch to reselect it.

Your palette is empty

Pick exact pixels or extract dominant colors, then save the colors you want to reuse.

Key facts

Best for
Picking exact pixel colors and building reusable palettes from images
Supported formats
JPG, JPEG, PNG and WebP
Maximum file size
25 MB
Maximum resolution
40 megapixels
Pixel sampling method
Browser canvas drawImage plus getImageData on the selected source pixel
Available color formats
HEX, HEX alpha, RGB, RGBA, HSL, HSLA, CMYK approximation and opacity
Palette limit
24 saved colors
Privacy model
Local browser processing with no image or color upload
Main limitation
Sampled values come from browser-decoded canvas pixels and may reflect browser color handling
Input formats
JPG, JPEG, PNG, WebP
Output formats
HEX list, CSS variables, JSON palette, RGB list, HSL list, PNG palette image
Limits
One image at a time, 25 MB per file, 40 megapixels per image, 24 saved palette colors, JPG, PNG and WebP only
Processing method
Images are decoded in the browser, drawn once to an offscreen canvas, sampled with getImageData and downsampled locally for dominant-color extraction.
Privacy model
Your image is processed locally in your browser. ToolMint does not upload or store your image or selected colors, and analytics do not include filenames, pixel coordinates, color values, palette values or image metadata.
Account required
No
Price
Free
Browser support
Modern desktop and mobile browsers with File, Blob, Canvas, getImageData, object URL and Clipboard API support. Native screen eyedropper appears only where the EyeDropper API is supported.
Main limitation
GIF, AVIF, HEIC, TIFF and SVG color picking are not claimed by this tool.
Privacy

Privacy and processing

Processing method: Images are decoded in the browser, drawn once to an offscreen canvas, sampled with getImageData and downsampled locally for dominant-color extraction.

Privacy model: Your image is processed locally in your browser. ToolMint does not upload or store your image or selected colors, and analytics do not include filenames, pixel coordinates, color values, palette values or image metadata.

Limitations

Limitations

  • GIF, AVIF, HEIC, TIFF and SVG color picking are not claimed by this tool.
  • Browser color management can affect how decoded canvas pixels compare with professional color-managed design software.
  • CMYK values are approximate conversions from screen RGB values and are not a print-production proof.
  • Dominant palettes are representative samples, not official brand palettes or accessibility guarantees.
  • The native Pick from screen option is available only in browsers that support the EyeDropper API.
Guide

What Is a Color Picker from an Image?

A color picker from an image samples colors from a picture instead of asking you to type values by hand. Upload a product photo, screenshot, logo mockup, illustration or web asset, then select a pixel to see its color in formats such as HEX, RGB, RGBA, HSL and HSLA.

The ToolMint Color Picker from Image runs in your browser. It reads JPG, PNG and WebP files locally, draws the decoded image to an offscreen canvas, samples pixels with browser canvas APIs and creates palette exports as downloadable files. The image is not uploaded to ToolMint.

Use it when you need an exact color from a reference image, want to build a small palette from a photo, or need copy-ready color values for CSS, design tools, documentation or brand QA.

How to Pick a Color from an Image

  1. Drop a JPG, PNG or WebP image onto the upload area, or choose one from your device.
  2. Wait for ToolMint to decode the image and show its dimensions, format and file size.
  3. Click or tap the image preview at the pixel you want to inspect.
  4. Review HEX, HEX alpha, RGB, RGBA, HSL, HSLA, CMYK approximation, opacity and source coordinates.
  5. Copy the value you need, or add the selected color to the saved palette.
  6. Use arrow keys after a pixel is selected to move one source pixel at a time. Hold Shift with an arrow key to move ten pixels.
  7. Export the saved palette as CSS variables, JSON, a plain text list or a PNG palette image.

For exact color matching, zoom your browser if needed and use keyboard movement for final adjustment. The marker remains tied to the original pixel coordinate, so responsive resizing of the preview does not change the sampled source pixel.

How ToolMint Samples Image Pixels

ToolMint decodes the uploaded image with browser image APIs, draws it once to an offscreen canvas and samples a single pixel with getImageData when you click, tap or move with the keyboard. The visible image may be scaled down for the screen, but the sampling coordinates are mapped back to the natural image width and height.

Step What happens Why it matters
Decode Browser reads the JPG, PNG or WebP file Rejects corrupt and unsupported images
Draw Image is drawn to an offscreen canvas Creates a local pixel source for sampling
Map Display coordinates are converted to natural pixels Keeps clicks accurate on scaled previews
Sample One pixel is read from the canvas Avoids repeated full-image processing
Format RGBA is converted to copy-ready color values Supports CSS, design and documentation workflows

The canvas context and pixel data are kept outside React state, which avoids unnecessary re-renders and helps keep large images responsive.

Understanding HEX, RGB, RGBA and HSL

Different tools prefer different color formats. HEX is common in CSS and design specs. RGB and RGBA are useful when you need numeric channel values. HSL and HSLA are easier to adjust by hue, saturation and lightness.

Format Example Best for
HEX #6B5CF6 CSS, brand specs and design handoff
HEX alpha #6B5CF6FF Compact color plus transparency
RGB 107, 92, 246 Channel-level inspection
RGBA rgba(107, 92, 246, 1) CSS colors with opacity
HSL 247deg, 90%, 66% Adjusting hue, saturation or lightness
HSLA hsla(247, 90%, 66%, 1) HSL with opacity
CMYK 57%, 63%, 0%, 4% Approximate print discussion only

CMYK in this tool is an approximation from screen RGB values. It is helpful for quick conversation, but it is not a substitute for a managed print workflow with ICC profiles and printer-specific conversion.

What Is Image Transparency?

Transparent pixels include an alpha channel. A fully opaque pixel has 100% opacity. A partially transparent pixel blends with whatever background sits behind it. A fully transparent pixel may still have RGB channel values, but those values might not be visible in normal viewing.

PNG and WebP commonly support transparency. JPG does not. ToolMint shows both the RGB values and the alpha value so you can see whether the sampled pixel is fully opaque, partially transparent or transparent. For contrast previews, transparent colors are composited over white before calculating the contrast ratio because WCAG contrast is defined between visible colors.

How to Extract a Color Palette

The Extract palette feature creates a representative set of colors from the image. Choose 5, 8 or 12 colors, then ToolMint downsamples the image, ignores fully transparent pixels, groups similar RGB values and filters near-duplicates so the result is useful rather than a long list of almost identical shades.

Palette size Useful when
5 colors You need a simple theme or presentation palette
8 colors You want primary colors plus supporting tones
12 colors You need a broader set for illustration, UI or mood boards

Extracted colors can be added to the saved palette. They are marked as extracted so you can distinguish them from manually selected exact pixels.

Exact Pixel Colors vs Dominant Colors

Exact picking and palette extraction solve different problems.

Method What it returns Use it for
Exact pixel picking The color at one source pixel Matching a logo edge, UI button, icon or screenshot detail
Dominant extraction Representative colors from many sampled pixels Building a mood board, theme or brand-adjacent palette
Native screen eyedropper A color selected through the browser EyeDropper API where supported Sampling outside the uploaded image, when browser support allows it

An exact pixel can be affected by antialiasing, compression artifacts or shadows. A dominant palette is less precise, but it is often better for choosing overall visual direction.

How to Check Text Contrast

ToolMint calculates contrast between the selected color and white or black text. It then suggests the higher-contrast foreground. This helps you decide whether white or black text is more readable on the sampled background.

Ratio Meaning
Below 3:1 Usually too low for text
3:1 or higher WCAG AA threshold for large text
4.5:1 or higher WCAG AA threshold for normal text
7:1 or higher WCAG AAA threshold for normal text

Contrast is only one part of accessibility. Font size, weight, surrounding colors, hover states and real content all matter. Treat the result as a color-pair check, not a complete accessibility audit.

Choosing Colors for Web and Graphic Design

When choosing colors from an image, decide whether you need precision or harmony. If you are matching an existing brand color, use exact pixel picking and sample from a flat area of the logo or asset. If you are building a palette from a photograph, extract dominant colors first, then manually pick a few accents.

Use case Recommended workflow
Match a logo color Pick from a flat logo area and copy HEX
Build website accents Extract 5 or 8 colors, then save only the readable tones
Inspect a screenshot Pick exact UI pixels and compare contrast
Prepare design tokens Save palette colors and export CSS variables
Document a palette Export JSON or a PNG palette image

Avoid sampling from blurry edges, shadows or compressed JPEG blocks when you need an official brand value. Those pixels may be visually close but numerically different from the intended color.

Mobile Color Picking

On mobile, tap the upload area to open your photo library. After the image loads, tap the preview to choose a pixel. The preview is responsive, but the sampled coordinate is still mapped to the original image dimensions.

For very small details, rotate the device, zoom the page or use a higher-resolution source image. Keyboard nudging is most useful on desktop and tablet setups with a physical keyboard, while touch picking is usually faster for broad color selection on phones.

Privacy and Browser-Based Processing

Your image is processed locally in your browser. ToolMint does not upload or store your image or selected colors.

The tool uses object URLs and Blob downloads instead of base64 uploads. Palette exports are generated in browser memory. Analytics events only record privacy-safe usage information such as the tool slug, image format, whether an image loaded, whether a pixel was picked, palette size and export type. They do not include filenames, pixel coordinates, selected color values, extracted palette values, image contents or metadata.

Common Color Picking Mistakes

The most common mistake is sampling the wrong pixel. JPEG compression, antialiasing and shadows can produce many nearby colors around an edge. Pick from the cleanest flat area when accuracy matters.

Another mistake is treating a dominant palette as a brand palette. Extracted colors are representative, not official. Use them as inspiration, then refine names, accessibility and roles before using them in production.

It is also easy to ignore transparency. A semi-transparent color may look different on light and dark backgrounds. Check RGBA and opacity when sampling PNG or WebP assets.

Limitations

ToolMint supports JPG, JPEG, PNG and WebP inputs for this color picker. GIF, AVIF, HEIC, TIFF and SVG color picking are not claimed here. The maximum file size is 25 MB and the maximum decoded image size is 40 megapixels.

Browser color management can affect how colors appear on screen, especially with wide-gamut displays or unmanaged images. The sampled values come from the browser-decoded canvas pixels. For print production, use color-managed design software and printer-specific profiles.

The native Pick from screen option appears only in browsers that support the EyeDropper API. The uploaded-image workflow remains the primary method.

Frequently Asked Questions

The FAQ section below this guide is generated from the ToolMint tool registry so visible answers and FAQ structured data stay synchronized.

Use Image Metadata Viewer when you need to inspect EXIF, ICC, GPS or raw metadata before color work. Use Image Metadata Remover when you need clean copies without embedded metadata. Use Image Format Converter to convert JPG, PNG and WebP after choosing colors, Image Compressor to reduce file size, Image Resizer to change dimensions and Image Cropper to reframe an image. Browse more image utilities in the Image category.

Sources

Steps

How to use

  1. Upload a JPG, PNG or WebP image by dropping it onto the upload area or choosing it from your device.
  2. Click or tap the preview to sample a source pixel from the original image dimensions.
  3. Copy HEX, RGB, RGBA, HSL, HSLA, CMYK approximation, opacity or coordinate values.
  4. Save selected colors to the palette, extract dominant colors or use the native screen eyedropper when supported.
  5. Export the saved palette as CSS variables, JSON, a plain text list or a PNG palette image.
Why you’ll love it

Benefits

Exact pixel sampling

Click or tap the preview and ToolMint maps the displayed point back to the original source pixel.

Copy-ready formats

Copy uppercase HEX, HEX alpha, RGB, RGBA, HSL, HSLA, opacity, CMYK approximation and coordinates.

Palette workflow

Save up to 24 colors, prevent accidental duplicates and export palettes as CSS, JSON, text or PNG.

Private browser processing

Images are decoded, sampled and analyzed locally without uploading image contents or selected colors.

In practice

Examples

  • Pick the exact HEX value from a logo screenshot and copy it into CSS.
  • Extract an eight-color palette from a product photo for a landing page mood board.
  • Check whether white or black text has better contrast on a sampled background color.
  • Save several PNG colors with transparency and export the palette as JSON for documentation.
Tips

Pro tips

  • Sample from flat areas instead of antialiased edges when you need an exact brand color.
  • Use arrow keys after selecting a pixel for one-pixel adjustments; hold Shift for ten-pixel movement.
  • Check alpha values when sampling PNG or WebP assets because transparent pixels can look different on different backgrounds.
  • Use dominant extraction for inspiration, then manually save the colors you actually plan to use.
  • Treat CMYK output as an approximation and use color-managed print software for production printing.
Watch out

Common mistakes to avoid

  • Picking from JPEG compression artifacts or shadows and treating the result as an official brand color.
  • Ignoring transparency when copying colors from PNG or WebP artwork.
  • Assuming a dominant palette returns exact UI or logo colors.
  • Choosing text colors from contrast ratios without reviewing font size, weight, state and context.
  • Using browser-sampled RGB values as a substitute for professional print color management.

Frequently asked questions

Sources

Made with care by ToolMint