About making a Material You theme from an image

Android 12 introduced Material You, which colors the whole system from the user's wallpaper. This tool does the same with any image you choose, such as a brand photo, a logo or an app screenshot.

It runs Google's own color extraction (the Celebi quantizer and the color scoring from material-color-utilities) in your browser, shows the best candidate colors, and builds a full Material 3 scheme from the one you pick. The image is never uploaded.

How to use it

  1. Drop, paste or choose an image.
  2. Pick one of the extracted colors as the seed, and a scheme style and contrast level.
  3. Copy the Compose, Android XML, Flutter, CSS, Tailwind or shadcn/ui code.

Questions

How does Android pick theme colors from a wallpaper?

It reduces the image to at most 128 colors with the Celebi quantizer, then scores them by how common and how colorful they are (in the HCT color space), filtering out near-greys. The top color becomes the seed for the scheme. This tool uses the same code and shows the top few.

Can I make a theme from my logo?

Yes. Transparent pixels are ignored, so a logo on a transparent background gives its brand colors. If your logo is mostly grey or black, pick a seed color by hand instead.

Is my image uploaded anywhere?

No. The image is read and analysed in your browser and never leaves your device.

Why doesn't the primary color exactly match my image?

Material 3 adjusts the seed to tones that meet contrast requirements in light and dark mode. Choose the Fidelity or Content scheme style to stay closest to the original color.