Color palette from a photo (extract brand colors in the browser)
Build a usable color palette from an image—place pickers on a photo or logo, copy HEX/CSS, refine in the palette tool. Private, no upload on Mewix.
By Mewix · Updated October 16, 2026 · Published September 15, 2026 · 3 min read

A moodboard photo is not a brand system until you turn it into a color palette from an image you can paste into CSS, Figma, or Tailwind. Automatic “dominant color” tools often miss the accent you actually need. Mewix’s colors from image tool lets you place the pickers—and the photo never leaves your browser.
Quick workflow
- Open Colors from image.
- Drop a photo, product shot, or logo PNG.
- Drag the pickers onto the colors that matter (5 by default; 2–10 supported).
- Copy HEX, RGB, or HSL—or export a HEX list / CSS variables.
- Lock a hero color into the palette generator for shades and harmonies.
- Check text pairs in the contrast checker before you ship tokens.
You place the pickers (not a black-box cluster)
Many extractors run k-means and hope the marketing teal survives. On Mewix you aim each sample:
- Drag pickers onto sky, product, type, and accent
- Shuffle randomises positions when you want a fresh start
- Arrow keys nudge for pixel-level aim
- Each sample averages a small square around the picker so single-pixel noise does not dominate
Transparent PNG pixels read as black—place pickers on opaque brand fills for logos with cut-outs.
Worked example: café photo → site palette
Imagine a café hero: warm wood, cream wall, deep espresso brown, soft sage plant, terracotta cup.
| Role | What to sample | Typical use |
|---|---|---|
| Background | Cream wall | Page / card background |
| Surface | Wood mid-tone | Cards, tables |
| Text | Espresso brown | Body copy on cream |
| Accent | Terracotta | Buttons, links |
| Calm | Sage leaf | Secondary chips, success-adjacent |
Copy those five HEX values, then open palette, lock the terracotta, and run Shades or Analogous if you need a fuller scale. Keep production systems to 5–7 core colors; stash one-off accents separately.
Cleaner results from logos vs photos
| Source | Tip |
|---|---|
| Logo on transparent PNG | Sample the filled mark, not the empty alpha |
| Busy photo | Crop to the brand zone first, or ignore chrome/UI |
| Flat brand still | Prefer even lighting; one key light beats neon chaos |
| Screenshot of a site | Crop out browser chrome if you only want brand colors |
Formats you can copy
| Export | Best for |
|---|---|
| HEX | Design tokens, Figma, most CSS |
| RGB / HSL tabs | Tweaking lightness in the picker |
| HEX list | Sharing a short brand strip in Slack |
| CSS variables | Dropping straight into a stylesheet |
Privacy: image stays on your device
Unreleased campaign art and client logos stay in the tab. Extraction uses a local canvas—there is no upload step for the core tool. Prefer that over “free” extractors that store moodboards on a server.
After extraction
- Refine a single swatch in the color picker
- Build structured schemes in the palette generator
- Validate text-on-background pairs in contrast

