Color Palette from Photo

Updated

A color palette from a photo is a set of dominant colors extracted from an image, usually returned as hex codes (e.g. #3B82F6), RGB, or HSL values. PhotoTones is a free color palette from image generator that extracts up to 12 colors from any photo in under a second — entirely in your browser.

How to Generate a Color Palette from a Photo (3 Steps)

  1. Open phototones.com in any modern browser. No signup or download is required.
  2. Upload a photo. Click "Choose an image" and select any JPG, PNG, GIF, WebP, BMP, or SVG file from your device.
  3. Click "Generate Color Palette". PhotoTones runs the Vibrant.js algorithm locally and displays up to 6 categorized colors (Vibrant, Dark Vibrant, Light Vibrant, Muted, Dark Muted, Light Muted). Pro users can extend to 8, 10, or 12 colors via a ColorThief-powered hybrid extraction.

Ready to try it?

Drop a photo, get a palette. Free, private, no signup.

Open the Color Palette from Image Generator

What You Get for Every Photo

Why Extract a Color Palette from a Photo?

Designers, developers, photographers, and brand strategists use a color palette from image generator for different reasons:

How PhotoTones Extracts Colors

PhotoTones uses a hybrid algorithm:

  1. Vibrant.js identifies six perceptually distinct color categories (Vibrant, Dark Vibrant, Light Vibrant, Muted, Dark Muted, Light Muted) using the Android Palette API approach.
  2. ColorThief (Pro) supplements the base 6 with additional dominant colors via k-means clustering, scaling to 8, 10, or 12 total colors.
  3. A Euclidean distance filter (threshold of 30 in RGB space) removes near-duplicate swatches so every color in your palette is visually distinct.
  4. Colors are sorted by HSL hue for a harmonious final display.

Frequently Asked Questions

How do I get a color palette from a photo?

Open phototones.com, click "Choose an image" to upload a photo, then click "Generate Color Palette". PhotoTones extracts up to 12 dominant colors with hex, RGB, and HSL codes in under a second — all in your browser.

Is the color palette generator from a photo free?

Yes. PhotoTones is free to use with no signup, no account, and no usage limits. Pro ($7/month, cancel anytime) adds professional exports like Adobe ASE, Tailwind config, SCSS variables, lossless PNG downloads, and a WCAG contrast grid.

Does PhotoTones upload my photo to a server?

No. PhotoTones uses the HTML5 Canvas API and the Vibrant.js algorithm to process every photo locally in your browser. Your image data is never transmitted, stored, or shared — it's safe to use with confidential assets.

How many colors can I extract from a photo?

The free version extracts up to 6 dominant colors per photo. PhotoTones Pro extends this to 8, 10, or 12 colors using a hybrid Vibrant.js + ColorThief extraction — ideal for larger design systems and extended brand palettes.

What photo formats are supported?

JPG, JPEG, PNG, GIF, WebP, BMP, SVG, and any other format your browser can display. Most camera outputs (including iPhone HEIC when converted to JPG) are fully supported.