← All tools
EDTOOLKITS GUIDES

Sample colours and interpret contrast results

By Team Edtoolkits · Design & branding

Sample precise pixels, interpret solid-pair contrast and recognize the limits of a palette extracted from a reduced image.

Use the guide alongside the working tool.

Open Image Color Picker & Palette →

Worked example

Solid white foreground on solid black background
Contrast ratio: 21:1
Reversing the pair gives the same ratio.

Contrast is a relationship between two colours. A dominant palette colour alone says nothing about readable text.

Use the tool

Choose an image and select a pixel, or use the coordinate fields and arrow keys.

Select palette colors and compare foreground and background contrast.

Copy color values or export the palette as CSS or JSON.

Sample the actual foreground and background

Use pixel coordinates or arrow keys for precise sampling. A photo or anti-aliased letter edge contains many colours; compare the intended solid text fill with the background beneath it, not an edge blended with its surroundings. Transparent pixels are composited onto white.

Check context beyond the ratio

A palette is sampled from a reduced image and can miss a small accent. Solid-pair WCAG ratios do not certify every size, weight or placement of text on a photograph or gradient. Review the hardest part of the background and retain exported CSS or JSON for reproducible colour choices.

Know the limits

JPG, PNG and WebP up to 20 MB / 16 MP. Palette extraction uses a 256-pixel sample and may return fewer distinct colors. Transparent pixels are composited onto white. WCAG ratios apply to solid color pairs, not every background or font.

Ready to apply this workflow?

Try Image Color Picker & Palette →

Explore a related workflow

All practical guides →

Found unclear instructions or an unexpected result? Contact Team Edtoolkits.

YOUR BROWSER, YOUR CHOICE