Palette Generator

Pick one colour. You get four tints, four shades and the classic colour-wheel harmonies, all ready to paste as CSS variables.

How it works

Tints are your colour mixed with white, and shades are your colour mixed with black, at 20, 40, 60 and 80 percent. The mix is done in sRGB, the same sum that Sass mix() and CSS color-mix(in srgb, ...) use, so the hex codes match what a stylesheet would compute.

The harmonies turn the hue round the HSL colour wheel and keep saturation and lightness. Complementary is the colour opposite, 180 degrees away. Analogous are its neighbours at 30 degrees either side. Triadic are the two colours a third of the way round, at 120 and 240 degrees.

The CSS output is one :root block with a custom property per swatch, named after the variable name you type. Everything is computed on this page.

How to use it

  1. 1 Pick your colour with the picker, or type a hex, rgb() or hsl() value.
  2. 2 Type a name for the variables, such as brand or primary.
  3. 3 Look over the tints, shades and harmonies. Press Copy under any swatch for its hex code.
  4. 4 Press Copy CSS to take the whole palette as custom properties.

Good to know

  • Tints at 60 to 80 percent make quiet backgrounds for alerts and selected rows in the same colour family.
  • Shades at 20 to 40 percent are often the hover and pressed states of a button.
  • Check text on any of these colours with the Contrast Checker before you ship it. A pleasing palette can still be hard to read.
  • A grey has no hue, so its harmonies are the same grey. Start from a coloured value to get a wheel.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

Building a small brand palette from one blue

Most palettes start with one colour somebody already likes. Say it is #3b82f6, a clear mid blue, and the variable name is brand. The page shows the blue on top with its rgb() and hsl() values, and under it three rows: tints, shades and harmonies. The CSS box below holds all fourteen colours as custom properties, starting with --brand: #3b82f6.

The tints are the blue mixed with white. At 20 percent white it is #629bf8, still clearly the brand blue but softer. At 80 percent it is #d8e6fd, pale enough to sit behind dark text as the background of an information banner. The shades go the other way. At 20 percent black the blue becomes #2f68c5, a natural hover colour for a button, and at 80 percent it is #0c1a31, close to navy and useful for dark headers.

The harmonies give accent colours. The complement of this blue is #f6af3b, an orange, which is the classic choice for a call to action that must stand out from a blue page. The analogous colours, #3bdff6 and #523bf6, are a cyan and a violet that sit comfortably next to the brand blue in a chart. The triadic pair, #f63b82 and #82f63b, a pink and a lime green, are louder: they work as small highlights and badly as large fills.

Pasting the block into a stylesheet gives every component one source of truth. A button can use background: var(--brand) and switch to var(--brand-shade-20) on hover. A light theme can use var(--brand-tint-80) for selected rows. When the brand colour changes next year, typing the new value here and pasting the new block updates every one of them.

There are limits to keep in mind. The tints and shades are linear sRGB mixes, which is what CSS and Sass do; perceptual colour spaces such as OKLCH would give more even steps in lightness, and this page does not use them. The harmonies follow the HSL wheel, so two colours with the same HSL lightness can look very different in brightness. And nothing here checks contrast. Run any pair you plan to put text on through a contrast checker before you build with it.

Frequently asked questions

What is the difference between a tint and a shade?

A tint is a colour mixed with white, so it gets lighter and paler. A shade is a colour mixed with black, so it gets darker. A tone, which this page does not make, is a colour mixed with grey.

Why do some harmonies look much brighter than others?

HSL lightness is not how bright a colour looks. At the same HSL lightness, yellow looks far brighter than blue. The harmonies here follow the classic HSL wheel that designers learn, so they keep the numbers even, not the look. Adjust the lightness of an accent by eye if it stands out too much.

Can I use these variables with Tailwind or another framework?

Yes. Custom properties work anywhere CSS does. In Tailwind you can point a theme colour at var(--brand-shade-20), and in plain CSS you write color: var(--brand).

Which colour formats can I type?

Hex with three, four, six or eight digits, rgb() and rgba(), and hsl() and hsla(), in comma or space syntax. Any transparency is ignored for the palette, which is built from the solid colour.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.