Skip to content
TabShedKitsMy desk

From Random Colors to a Palette You Can Actually Use

Updated 5 min readBy

Random swatches are only a starting point. Learn how to turn a generated palette into a balanced scheme with roles, tints and contrast checks.

Color Palette GeneratorBuild a palette from one color
Open Color Palette Generator
On this page
  1. How the generator works
  2. Step 1: generate more, keep less
  3. Step 2: give each color a job
  4. Step 3: build the rest from your chosen color
  5. Step 4: test the pairs you will really use
  6. Step 5: sanity-check by looking at it
  7. When a photo is a better source
  8. Common problems
  9. A worked example: a small shop page
  10. FAQ

You press a button, get five random colors and none of them go together. That is normal. The Color Palette Generator picks every color at random, so its strength is speed and surprise, not taste. The skill is in what you do with the swatches afterwards. This guide shows a practical way to turn random colors into a palette that works in an interface, a poster or a slide deck.

How the generator works

You choose the Number of colors, from 2 to 10, and press the generate button. Each color is drawn at random from the whole range, so there is no theme and no relationship between them. Click a swatch to copy its HEX code, or use the copy-all button to copy the whole list, separated by commas. Palettes are not saved anywhere; when you generate again the previous one is gone, so copy what you like first.

Because it is random, treat it as a way to find one interesting color, not a finished scheme.

Step 1: generate more, keep less

Set the count to 8 or 10 and press the button several times. Do not look for a perfect set; look for a single color that makes you stop. Copy its HEX code and write it down. Repeat until you have one or two colors you like. Choosing from a bigger pool is quicker than hoping that five random colors happen to match.

Step 2: give each color a job

A usable palette has roles, not just colors:

  • Base: the large background, usually very light or very dark and low in saturation.
  • Text: a strong dark or light color that stands out from the base.
  • Main color: the brand or highlight color; the one you picked in step 1.
  • Accent: a small pop for buttons or alerts, used sparingly.

A simple proportion that works well is mostly base, some main color and a very little accent. If everything is equally loud, nothing stands out.

Step 3: build the rest from your chosen color

Random generation is poor at giving matching shades, but you can make them yourself. Take your favourite HEX code and create a lighter tint for backgrounds and a darker shade for text or hover states. The Color Picker lets you paste a color and read it in HEX, RGBA, HSL and other formats, and HSL is the easiest format for this job: keep the hue the same and change only the lightness number. Colors that share a hue look related, which is why one-hue palettes always feel coherent.

Step 4: test the pairs you will really use

A palette is only useful if text is readable on its backgrounds. Open the Color Contrast Checker, paste the text color and the background color, and read the ratio. Normal text needs at least 4.5:1 for WCAG AA, and large text at least 3:1. Random colors fail this test very often, so do it before you commit the palette to a design. See the guide on fixing low-contrast text for how to adjust a failing pair.

Step 5: sanity-check by looking at it

  • Squint or shrink the design. If one color dominates unintentionally, reduce its area.
  • Place the palette on a neutral gray background. Colors that look fine on white sometimes clash elsewhere.
  • Check on a phone in daylight and at night. Very saturated colors tire the eye on small screens.

When a photo is a better source

If you want colors that already belong together, take them from a picture. A photo of a sunset, a plant or a product has natural harmony that random generation cannot match. The Image Color Palette tool pulls the main colors out of any image, and its swatches can be copied the same way. Our guide on matching design colors to a photo explains that route.

Common problems

  • Every palette looks muddy or garish. Keep just one generated color and derive the others from its hue.
  • Lost a palette I liked. It is not saved. Always copy the HEX codes before you generate again.
  • HEX codes look different in two apps. Make sure both apps use the same color space (sRGB for web). Printed output will also differ from a screen.
  • Two colors look identical. Random colors can land close together. Drop one and generate a replacement.

A worked example: a small shop page

Imagine you are building a page for a bakery. You generate ten colors a few times and stop on a warm terracotta that you like. That becomes the main color. For the base you take a very light cream, which you make by lifting the lightness of the same hue in HSL. For text you take a dark brown, made by lowering the lightness. For the accent you keep one generated color from another round, a muted green, and use it only for the order button. You then run the brown on cream and the white label on terracotta through the contrast checker; the second pair is a little low, so you darken the terracotta one step. The finished palette has four colors with clear jobs, and only one of them came straight from the generator.

FAQ

Can I lock a color and regenerate the rest?

No. Every press of the button replaces all the colors. Copy the one you want to keep first.

How many colors should a palette have?

For most designs, three to five is enough: a base, a text color, a main color and an accent. The tool gives up to 10 so you have choice.

Are the colors saved or sent anywhere?

No. They are generated in your browser and disappear when you reload.