Image Color Palette Generator
Turn any image into a brand palette exported as CSS, SCSS, Tailwind or JSON.
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.
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.
Upload an image and click Generate Palette to build a color palette from it.
Upload an image to extract its dominant colours.
Live colour picker & converter
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
Contrast ratio
17.74:1
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
Add your colours
Enter 2 to 10 HEX values, or pick them with the colour picker.
Name each colour
Label entries like primary, secondary or accent for clearer exports.
Choose an export format
CSS variables, SCSS variables, Tailwind tokens or JSON.
Download your palette
Get the code file plus a labelled swatch PNG for sharing.
Related tools
Dominant Colors From Image
Find the colours that actually dominate a photo, with HEX, RGB and HSL values.
Open ToolHEX to RGB Color Converter
Convert between HEX, RGB and HSL colour notation, one colour per line.
Open ToolRemove Background from Image
Remove the background from a photo online and download a transparent PNG in seconds.
Open ToolCompress Image (Reduce File Size)
Compress images online to shrink file size for the web without losing visible quality.
Open ToolResize Image (Change Dimensions)
Resize images to exact pixel dimensions or by percentage, with the aspect ratio locked.
Open ToolRelated articles
Designing a brand colour system from scratch
7 min read
CSS custom properties vs SCSS variables
4 min read
Setting up a Tailwind theme with brand colours
5 min read