Skip to content
MewixMewix
GuideColors

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

Illustration for Color palette from a photo (extract brand colors in the browser)

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

  1. Open Colors from image.
  2. Drop a photo, product shot, or logo PNG.
  3. Drag the pickers onto the colors that matter (5 by default; 2–10 supported).
  4. Copy HEX, RGB, or HSL—or export a HEX list / CSS variables.
  5. Lock a hero color into the palette generator for shades and harmonies.
  6. 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.

RoleWhat to sampleTypical use
BackgroundCream wallPage / card background
SurfaceWood mid-toneCards, tables
TextEspresso brownBody copy on cream
AccentTerracottaButtons, links
CalmSage leafSecondary 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

SourceTip
Logo on transparent PNGSample the filled mark, not the empty alpha
Busy photoCrop to the brand zone first, or ignore chrome/UI
Flat brand stillPrefer even lighting; one key light beats neon chaos
Screenshot of a siteCrop out browser chrome if you only want brand colors

Formats you can copy

ExportBest for
HEXDesign tokens, Figma, most CSS
RGB / HSL tabsTweaking lightness in the picker
HEX listSharing a short brand strip in Slack
CSS variablesDropping 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

CTA: Extract a color palette from your photo.