Dominant Color Extractor

Your workspaceProcessed on your device
A few things to know.

Up to 25 MB, 24 megapixels and 12,000 pixels per side. The analysis clusters a browser-decoded sRGB sample within 256 × 256 pixels. Fully transparent samples are excluded. Partial alpha is composited on the selected backdrop.

  1. Open a still JPG, PNG or WebP, or load the RGBA example.
  2. Set the maximum cluster count and sampling backdrop, then extract the colors.
  3. Compare visible sample counts and black or white text contrast. Download a developer snippet or JSON.