Colour palette generator

Make a colour palette from one colour: lighter and darker shades, or matching colours from the colour wheel. Copy each HEX code, or all of them as CSS.

Your files stay on your device. Nothing is uploaded.

Colour palette generator

Updates as you change the colour

Step 1: Choose a base colour

HEX, RGB or HSL, for example #1E8A4C or rgb(30, 138, 76).

Palette type

Lighter and darker versions of one colour, for backgrounds, borders and text.

Step 2: Your palette

    How to make a colour palette

    1. Choose a base colour

      Pick a colour, type its code, or click Random colour for ideas. Your brand colour is a good start.

    2. Choose the palette type

      Shades for one-colour designs, or a colour-wheel harmony for matching colours.

    3. Copy the colours

      Click Copy on any colour, or Copy CSS to get all of them as CSS variables.

    About this tool

    The palette types

    TypeHow it is made
    ShadesSame hue, lightness from 92% to 20%
    AnalogousNeighbours, 30° apart on the colour wheel
    ComplementaryThe opposite colour, 180° away
    Split complementary150° and 210° away
    TriadicThree colours, 120° apart
    TetradicFour colours, 90° apart

    Using a palette

    A common rule is 60-30-10: one main colour for most of the design, a second for about a third, and an accent for buttons and highlights. Shades of one colour give backgrounds, borders and text that always match.

    Check text contrast

    Before putting text on a colour, check its contrast with the HEX to RGB converter, which shows whether white or black text passes WCAG.

    Privacy

    This tool runs in your browser, on your own device. Your files and text are not uploaded to our server and we cannot see them. When you close or reload this tab, they are cleared, along with the results.

    Frequently asked questions

    What do the CSS variables look like?

    A :root block with --colour-1, --colour-2 and so on. Paste it into your stylesheet and use the colours as var(--colour-1).

    Can I get a palette from a photo?

    Pick colours from a photo with Colour picker from image, then use one as the base colour here.

    Is the random colour truly random?

    Yes, it uses your browser's secure random number generator.

    Is anything sent to a server?

    No. The palette is made in your browser.