Images & files

Free image color palette extractor and contrast checker

Select an image to sample representative colors in your browser and copy the values you need. Check selected solid color pairs against WCAG 2.2 contrast thresholds. Those pair checks do not evaluate the accessibility of an entire design.

  • No image upload
  • Representative sampled colors
  • Exact solid-pair contrast math

Choose an image to sample.

Browser-only processing. The selected image and extracted colors stay on this device. Plainview Tools does not upload or store the image.

Compare solid color pairs.

Your extracted palette will appear here.

The tool verifies the source file, samples a bounded canvas, and checks selected solid pairs with the WCAG luminance formula.

Choose a static PNG, JPEG, WebP, BMP, GIF, or AVIF image to begin.

How it works

Bound the sample. Show the method.

StageWhat the tool doesWhat the result means
VerifyChecks the file signature, static-image status, dimensions, and safety limits before decodingThe selected file matches one supported image format
SampleDraws a proportional local sample capped at 65,536 pixelsLarge images do not create unbounded analysis work
ExtractGroups nearby sampled sRGB values deterministically and orders representatives by sampled shareA practical summary—not every color in the source file
CompareUses WCAG relative luminance and the unrounded ratio for each pass decisionWhether the selected two solid colors meet the shown thresholds
Representative does not mean exact

These are representative colors from a bounded pixel sample, not a complete inventory of every source color. Gradients, compression, downsampling, embedded color profiles, and browser decoding can change which colors become the strongest representatives.

Transparency needs a backdrop

Fully transparent pixels are ignored. Partly transparent pixels are composited over the visible analysis matte because their apparent color depends on what sits behind them. Change the matte to model the intended page background, then extract again.

This does not test text against the actual photograph

WCAG text contrast depends on the pixels immediately behind the letters. A representative palette pair cannot account for every light, dark, or patterned area in an image. Test the final placement and states; do not treat this result as a WCAG audit or conformance certificate.

Static browser-decodable files only

The tool accepts static PNG, JPEG/JFIF, WebP, BMP, GIF, and AVIF files up to 10 MiB, 4,096px per edge, and 8,388,608 pixels. Animated files and SVG are rejected. AVIF decoding still depends on browser support.

Frequently asked questions

Why do I get different swatches when I change the background color?

The analysis matte is the color underneath partly transparent pixels. Soft edges and shadows blend with it, while fully transparent pixels are skipped. Choose the intended page background and extract again to see colors representative of that placement.

How do I reuse a palette on my website?

Copy a swatch’s hex value for a single color, or use Copy CSS to take the palette as CSS variables. The swatches summarize sampled pixels. Use your original design file when you need an exact brand color.

Does a passing color pair mean text will be readable over the whole photo?

The ratio applies to the two solid colors you selected. A photo can be dark behind one letter and bright behind the next. Check the text where it actually sits, or place it on a solid panel using the tested background color.

Primary sources

The contrast thresholds and pixel boundary.

Reviewed August 25, 2026. Contrast decisions follow WCAG 2.2 and W3C's relative-luminance method; local sampling uses the browser Canvas pixel API.