A decade of Canvas at your command, powered by our custom AI engineStart building

Design Tool

Color Palette Generator

Enter any hex colour and instantly generate harmonious 5-colour palettes. Copy individual swatches or export the full CSS custom property block for your Canvas HTML Template project.

CSS Custom Properties

:root {
  --color-primary: #1abc9c;
  --color-secondary: #78deca;
  --color-accent: #0a8068;
  --color-contrast: #bc1a3a;
  --color-muted: #bae9df;
}

Preview Heading

This is how your palette looks applied to a card component. The background uses your primary colour.

Primary ButtonSecondary

Live preview using the Balanced palette

What is colour theory for web design?

Colour theory is the set of principles used to create harmonious colour combinations. In web design, the right palette establishes brand identity, guides user attention, and creates emotional resonance. Poor colour choices confuse users and reduce trust; harmonious palettes make interfaces feel polished and intentional.

This generator uses five established harmony rules: Balanced (primary + subtle variations), Complementary (opposites on the colour wheel for high contrast), Analogous (neighbouring colours for cohesive, calming schemes), Triadic (three evenly spaced hues for vibrant, balanced designs), and Shades (tints and tones of a single hue for minimalist elegance).

Every palette outputs as CSS custom properties — paste them into your Canvas HTML Template :root block and reference them with var(--color-primary). This single-source approach means updating your brand colours site-wide takes seconds.

How to use this tool

  1. 1

    Enter a hex colour code or use the colour picker to choose your base colour.

  2. 2

    Switch between palette types — Balanced, Complementary, Analogous, Triadic, or Shades.

  3. 3

    Click any colour swatch to copy its hex value to your clipboard instantly.

  4. 4

    Click 'Copy CSS' to get the full custom property block ready for your stylesheet.

  5. 5

    Use the live preview to see how the palette works on a real card component.

  6. 6

    Hit 'Random' to discover unexpected colour combinations you might not have considered.

Palette type reference

TypeRuleBest for
BalancedPrimary colour + subtle HSL variationsGeneral UI, branding, safe defaults
ComplementaryBase + colour 180° opposite on wheelCTAs, alerts, high-contrast sections
AnalogousBase + colours 15–30° either sideCalm, cohesive designs, nature themes
TriadicThree colours 120° apartVibrant, playful, creative portfolios
ShadesTints and tones of single hueMinimalist, elegant, monochrome sites

Frequently Asked Questions

What is a colour palette generator?

A colour palette generator is a tool that creates harmonious colour combinations from a single base colour. It uses colour theory rules — complementary, analogous, triadic, and monochromatic — to produce sets of colours that work well together in web design, branding, and UI design.

What are the 5 types of colour harmony?

The five main types are: Complementary (opposite colours on the wheel), Analogous (colours next to each other), Triadic (three evenly spaced colours), Monochromatic (shades/tints of one colour), and Split-Complementary (a colour plus the two adjacent to its complement). This generator produces Balanced, Complementary, Analogous, Triadic, and Shades palettes.

How do I use CSS custom properties for colours?

CSS custom properties (variables) let you define colours once and reuse them throughout your stylesheet. Define them in :root { --primary: #1abc9c; } and reference with color: var(--primary). This makes theme changes instant — update one value and every instance changes. Canvas HTML Template uses CSS variables extensively for theming.

What hex format should I enter?

Enter a 6-digit hex colour code with or without the # symbol. Examples: #1abc9c, #FF5733, or 1A1D1F. The generator auto-formats your input and produces 5-colour palettes based on colour theory. You can also use the colour picker for visual selection.

Ready to build a full HTML layout?

Canvas Builder generates production-ready Canvas HTML Template pages with your custom colour palette baked in.

Try Canvas Builder