Skip to main content

How to Generate a Color Palette

Create harmonious color palettes from a base color or from any image with our free Color Palette Generator. Export as CSS variables, Tailwind, or hex codes.

Loading tool...

Steps

1

Choose your starting point

Either enter a base colour (your brand primary colour) to generate a mathematical colour scheme, or upload an image to extract the dominant colours from a photo, product image, or design reference.

2

Select a colour harmony mode

Choose the colour relationship: Complementary (opposite on the colour wheel — high contrast, bold), Analogous (adjacent on the wheel — harmonious, serene), Triadic (three equally spaced colours — vibrant and balanced), Split-complementary (base plus two adjacent to its complement — softer than complementary), or Monochromatic (tints and shades of the same hue).

3

Adjust individual colours

Fine-tune the generated palette by adjusting saturation, lightness, or specific hue values. Lock colours you are happy with and regenerate just the unlocked ones. For brand palettes, ensure at least one colour meets WCAG contrast requirements for text use.

4

Generate tints and shades

For each palette colour, generate a scale of tints (lighter versions) and shades (darker versions) for use in design systems. A complete palette typically includes 9–11 steps from very light to very dark.

5

Export in your preferred format

Export as CSS custom properties (variables), Tailwind CSS configuration, SCSS variables, JSON, or a simple list of hex codes. This lets you import the palette directly into your design system or codebase.

Colour Theory Basics for Web Designers

Colour theory provides mathematical models for predicting which colours work well together. The colour wheel places hues in a circle, and relationships on the wheel predict harmony. Complementary colours are opposite on the wheel (blue-orange, red-green, yellow-purple) and create maximum contrast and visual tension — good for CTAs and emphasis but tiring if used in equal measure. Analogous colours are adjacent on the wheel (blue, blue-green, green) and create a harmonious, cohesive feeling — good for interfaces that should feel calm and professional. Triadic colours are equally spaced (red, yellow, blue or orange, purple, green) and are vibrant and balanced — used in more playful, energetic brand identities. Monochromatic schemes use tints and shades of a single hue — sophisticated and easy to keep consistent, the approach used by many premium brands.

Frequently Asked Questions

Related Tools