SEQUENCE
Images
Free · no signup

Color Palette Generator from Image: Extract HEX Codes

Upload a photo, screenshot or logo and get its 8 dominant, visibly distinct colors with HEX, RGB and HSL values. Designers, marketers and developers use it to match brand colors, build moodboards or pull a palette from a product photo or a website screenshot.

How to use it

  1. 1Upload or drop an image; colors are extracted automatically.
  2. 2Click a swatch to copy its HEX code, or copy the RGB or HSL value of any color.
  3. 3Choose an export format: CSS variables, SCSS, Tailwind v4 theme or JSON.
  4. 4Download the palette file, or save it as a PNG with swatches and codes.

How does the extractor pick colors?

It shrinks the image, groups similar pixels into color buckets and takes the most common colors that are visibly different from each other, measured with a perceptual color distance. That's why you get 8 distinct colors instead of eight shades of the same background. Transparent pixels are ignored.

Dominant doesn't mean exact. A small but important accent, like a red logo on a large white page, can be left out because it covers few pixels. For an exact brand color, take it from the brand guidelines or the original vector file.

How to turn extracted colors into a usable palette

A photo's palette is raw material. To make it work in an interface or a brand system:

  • Pick one dominant color, one secondary and one accent; the 60-30-10 split is a good starting point.
  • Add neutrals: very dark and very light shades for text and backgrounds.
  • Check contrast: WCAG AA asks for 4.5:1 for normal text and 3:1 for large text.
  • Rename the exported variables by role, such as --color-primary, once the palette is settled.

Building a full brand palette? Our branding team can help.

FAQ

Upload the image and the tool lists its main colors with HEX codes; click any swatch to copy the code. If the exact shade you need isn't among the 8, crop the image down to that area first (the Image Cropper works for this) and run the extraction again.

All three describe the same color. HEX, like #1A2B3C, is the compact form used in CSS and design tools. RGB lists red, green and blue values from 0 to 255. HSL uses hue, saturation and lightness, which makes it easy to create lighter or darker variants of one brand color.

No. The image is read and analyzed in your browser, and nothing is sent to our servers. That makes it safe to use with client work, internal screenshots or unreleased designs. The tool is free, works without an account and has no limit on how many images you analyze.

Yes. Choose CSS for variables in :root, SCSS for $palette variables, Tailwind v4 for an @theme block with --color-palette tokens, or JSON with HEX, RGB and HSL values. The PNG option saves swatches with their HEX and RGB codes, handy for moodboards, client presentations or eyedropping into Figma.

SEQUENCE web studio

Need a website or marketing?

We build landing pages, corporate sites, and e-commerce. SEO, branding, and automation — all in one team.

All services