Skip to content
SoftwareSolutions.net
Calculators & Converters

Palette generator

Generate a random set of harmonious colours as hex codes.

Try it

Ready

Settings

Output

The result appears here.

About Palette generator

A palette generator produces a set of colours that work together, returned as hex codes you can use in a design, a website or a presentation. Choose how many colours you want, and the tool builds a set spread around a random starting hue, with varied saturation and lightness so the colours contrast well. It is a quick way to find a starting point when you are stuck on a scheme.

Colours that look good together usually share a relationship on the colour wheel and a consistent level of saturation. The generator spaces its hues evenly, which gives a balanced set, and it varies the lightness so the palette has both light and dark tones for backgrounds and text.

How to use Palette generator

  1. Enter how many colours you want, from 2 to 12.
  2. Generate the palette.
  3. Copy the hex codes you like into your design tool or style sheet.
  4. Check contrast between text and background colours before you use them.

How the colours are chosen

The tool begins with a random hue and steps evenly around the colour wheel for each colour. Saturation is kept in a moderate range so the colours are vivid without being harsh, and lightness varies to add depth.

Hex codes give each colour as red, green and blue values in hexadecimal. A code such as #3A7BD5 is a blue, and the first pair of digits is the red value, which is useful for simple adjustments by hand.

The result is a starting point. Brand colours, accessibility rules and the mood of the project should guide the final choice, so treat the generated set as a suggestion rather than a fixed scheme.

Making a palette work in a design

Use one colour as the main accent, a second for supporting elements and neutrals for backgrounds and text. Most good designs rely on a few colours used consistently, rather than many colours used at once.

Check contrast for text. The WCAG guidelines suggest a contrast ratio of at least 4.5 to 1 for normal body text, and many light colours fail that test on white. Test each pair with a contrast checker before you use it.

Consider colour blindness. Red and green are hard to tell apart for many people, so do not rely on those colours alone to convey meaning. Add icons, labels or patterns as well.

Test the palette in both light and dark modes before you commit to it. A colour that works on a white background can look muddy or lose contrast on a dark one, so check each swatch against the backgrounds it will actually sit on.

Frequently asked questions

Will the same palette appear again?

The colours are random each time, so a fresh run gives a new set. Save the codes you like before generating again.

Can I lock one colour and generate the others?

Not in this version. Copy the colour you want to keep, then generate a new set and pick the matching colours by hand.

Are the colours safe to use commercially?

The generator makes colours from numbers and has no copyright, so you can use the codes freely. Check any brand rules that apply to your project.

Related tools

Tools that pair well with this one.