Image Color Palette Generator

Turn any image into a brand palette exported as CSS, SCSS, Tailwind or JSON.

Private, in-browser processing
Information

Color Palette turns a set of two to ten colours into ready-to-use design tokens, without you needing to hand-write variable syntax for every platform. Pick or type your colours, name them if you like, and export the whole palette as CSS custom properties, SCSS variables, a Tailwind theme configuration, or a plain JSON object — whichever matches the codebase you're dropping it into. Alongside the code export you get a swatch PNG showing every colour as a labelled block, useful for sharing a brand palette with a designer or client who doesn't need to see raw code. This is built for the moment after a colour system has been agreed on: locking in a primary, secondary and accent set, plus a couple of neutrals, and getting it into a project in the exact format that project uses. Because everything runs client-side, palettes you're still finalising for an unreleased brand never leave your browser.

This tool is now part of a bigger one. Open Color Toolkit
Your image

Drag & drop your JPG, PNG, WEBP or BMP file here

click to browse, or press Ctrl / ⌘ + V to paste an image

One image, up to 40 MB. You can also paste from the clipboard.

Result

Upload an image and click Generate Palette to build a color palette from it.

Colour toolkit

Upload an image to extract its dominant colours.

Live colour picker & converter

HEX#2563EB
RGBrgb(37, 99, 235)
HSLhsl(221, 83%, 53%)
HSVhsv(221, 84%, 92%)
CMYKcmyk(84%, 58%, 0%, 8%)

Complementary

Analogous

Triadic

Your palette0 saved

Save colours from the swatches above or the picker to build a palette, then export it as CSS, SCSS, Tailwind, JSON or Figma tokens.

Contrast checker

Sample text Aa

Contrast ratio

17.74:1

Normal AAPassNormal AAAPassLarge AAPassLarge AAAPass

Image Color Palette Generator · runs privately in your browser — files never leave your device

Examples

Click any example to load it into the input.

How to use

1

Add your colours

Enter 2 to 10 HEX values, or pick them with the colour picker.

2

Name each colour

Label entries like primary, secondary or accent for clearer exports.

3

Choose an export format

CSS variables, SCSS variables, Tailwind tokens or JSON.

4

Download your palette

Get the code file plus a labelled swatch PNG for sharing.

Dominant Colors From Image

Find the colours that actually dominate a photo, with HEX, RGB and HSL values.

Open Tool

HEX to RGB Color Converter

Convert between HEX, RGB and HSL colour notation, one colour per line.

Open Tool

Fix Image Color Balance

Nudge red, green and blue independently to correct a colour cast.

Open Tool

Remove Background from Image

Remove the background from a photo online and download a transparent PNG in seconds.

Open Tool

Compress Image (Reduce File Size)

Compress images online to shrink file size for the web without losing visible quality.

Open Tool

Resize Image (Change Dimensions)

Resize images to exact pixel dimensions or by percentage, with the aspect ratio locked.

Open Tool

Related articles

Guide

Designing a brand colour system from scratch

7 min read

Article

CSS custom properties vs SCSS variables

4 min read

Tutorial

Setting up a Tailwind theme with brand colours

5 min read

Frequently asked questions