How to Choose the Perfect Color Palette for Your Website (2026 Guide)

A step-by-step way to choose website colors that look good, read well and work for people with color blindness.

Last updated: 10 November 2026

A good color palette does quiet work. It tells visitors what your site is about, guides their eyes to the button that matters, and keeps long pages comfortable to read. A bad one does the opposite: text is hard to read, buttons blend into the page, and the whole site feels unfinished. The good news is that you do not need a design degree. Follow the steps below and you will have a palette you can explain and defend.

You can try everything in this guide in the free Color Palette Generator, which runs in your browser. Press the Space bar to make five colors, lock the ones you like and keep going.

Try it now: Palette Generator

Step 1: Start with one main color

Pick the color people should remember. Think about what your site does and who it is for. Blue often reads as calm and trustworthy, green as growth or health, orange and yellow as friendly and energetic, red as urgent or bold, and black or deep purple as premium. These meanings are habits, not laws, and they change between cultures: red is a sign of luck in some places and a warning in others. If you can, test your choice with a few real visitors.

If you already have a logo, take the main color from it. Otherwise choose a color you can live with for years, not one that is only fashionable this season. Type its HEX code into the generator, lock it, and build the rest around it.

Step 2: Choose a color scheme

A scheme is the rule that picks the other colors from the color wheel. The five most useful are:

  • Monochromatic: one hue in several lightness steps. Calm and safe, ideal for minimal sites.
  • Analogous: neighbouring hues, such as blue, teal and green. Smooth and natural.
  • Complementary: opposite hues, such as blue and orange. Strong contrast, best with one color dominant and the other used as the accent.
  • Triadic: three hues spread evenly around the wheel. Lively, but easier to overdo.
  • Split complementary: a main hue and the two on either side of its opposite. Contrast with less tension.

If you are unsure, start with analogous or complementary. The scheme builder at the bottom of the Color Palette Generator page makes all of them from one base color.

Step 3: Use the 60-30-10 rule

This old interior design rule works well on screens. Use a neutral or light color for about 60 percent of the page, such as the background. Use a secondary color for about 30 percent, such as cards, headers and sidebars. Keep your accent for about 10 percent: buttons, links and highlights. Because the accent is rare, it stands out, and visitors know where to click.

A five-color palette maps neatly onto this: two neutrals, one main color, one secondary color and one accent.

Step 4: Add neutrals and status colors

Most sites need more than the brand colors. Add a dark neutral for text (a very dark gray or navy is softer than pure black), a light neutral for backgrounds and a mid-gray for borders and placeholder text. Then pick colors for success, warning and error messages. Never use color alone to show status. Add an icon or a word, because some people cannot tell red from green.

Step 5: Check contrast

Text must stand out from its background. The WCAG accessibility guidelines ask for a contrast ratio of at least 4.5 to 1 for normal text and 3 to 1 for large text, and 3 to 1 for the outlines and icons of buttons and form fields. Light gray on white and yellow on white are the usual offenders.

Check every text and background pair, including text on buttons, with the Color Contrast Checker. It also suggests the nearest color that passes, so you do not have to guess.

Step 6: Test for color blindness

About 1 in 12 men and 1 in 200 women have some form of color vision deficiency, most often a difficulty telling red from green. If your design depends on that difference, such as a red error and a green success with no other clue, a large group of visitors may miss it.

Turn on the color blindness simulator in the Color Palette Generator and switch between protanopia, deuteranopia, tritanopia and grayscale. Look for two colors that become the same in one view, and for a palette that loses all its contrast in grayscale. The tool lists the pairs that blend together. If you find one, make one of the pair lighter or darker, or add a label or an icon.

Step 7: Try dark mode

Many visitors use dark mode. Do not simply invert your colors. Use a very dark gray rather than pure black for the background, soften your accent slightly so it does not glow, and check the contrast again. A palette with both a light end and a dark end, which the generator aims for, adapts more easily.

Step 8: Export and use your palette

When you are happy, export the palette as CSS variables, for example:

:root {
  --color-primary: #1E90FF;
  --color-accent: #FF8D1E;
  --color-bg: #F4EFE6;
  --color-text: #0F2A43;
}

Then use var(--color-primary) throughout your stylesheet, so a color can be changed in one place. The generator also exports a Tailwind v3 config, the @theme block for Tailwind v4, SCSS variables, JSON and a PNG you can share with a client or a teammate.

Common mistakes

  • Too many colors. Stay with one main color, one or two supporting colors and neutrals.
  • Pure black text on a pure white background. It can feel harsh. A very dark gray is easier on the eyes.
  • Choosing colors you like instead of colors your audience can read.
  • Low-contrast placeholder text and footers.
  • Using red and green as the only difference between two states.

A quick checklist

  • One main color, chosen for a reason.
  • A scheme and a five-color palette built around it.
  • The 60-30-10 split applied to the page.
  • Contrast of at least 4.5 to 1 for text.
  • Checked in the color blindness simulator.
  • Tried in dark mode.
  • Exported as CSS variables or a Tailwind config.

Common questions

How many colors should a website palette have?

Five is a good starting point: two neutrals, a main color, a secondary color and an accent. Add colors for success, warning and error messages if your site needs them.

What are the best colors for a website?

There is no single best color. Choose by purpose and audience, then check contrast and color blindness. Blue and green are common for trust and health, but any color works when the contrast is right.

How do I make a color palette accessible?

Check the contrast of every text and background pair (at least 4.5 to 1 for normal text), do not use color alone to carry meaning, and test the palette in a color blindness simulator.

Can I make a palette from a photo or an existing brand color?

Yes. Type your HEX code as the base color and lock it in the Color Palette Generator, or use Color Picker from Image to pull the main colors out of a photo.

Tools used in this guide