How to Build a Color Palette With Color Theory (Not Guesswork)
Most palettes fail for a simple reason: they are chosen as five pretty swatches instead of as a system with jobs to do. A website needs a background, text colors, a primary action color, borders, and colors for success and error states. Color theory gives you a reliable way to choose hues that belong together, and a few practical rules turn those hues into something you can actually build with.
The color wheel in one minute
The modern digital color wheel is based on the RGB primaries. Hue is measured in degrees: red at 0°, yellow at 60°, green at 120°, cyan at 180°, blue at 240° and magenta at 300°. Every color harmony is simply a pattern of positions on this wheel. That is why the color palette generator above only needs one base color: it rotates the hue to find the others.
Traditional painters use a red–yellow–blue wheel, which places complements slightly differently (red’s complement is green instead of cyan). For screens, the RGB-based wheel is the one that matches how your colors are actually displayed.
The six classic harmonies
Complementary colors sit opposite each other, 180° apart, such as blue and orange. They create maximum contrast and energy. Use one as the main color and the other sparingly for calls to action. Using both in large amounts tends to look loud and can cause a vibrating effect where they meet.
Analogous colors are neighbours, typically within 30–60° of each other, like yellow, orange and red-orange. They feel natural and calm because they often occur together in nature: think of autumn leaves or a sunset. The risk is low contrast, so you will usually need a dark neutral for text.
Split-complementary takes the base color and the two colors on either side of its complement (for example 150° and 210° away). You get strong contrast with less tension than a pure complementary pair. It is a good choice for beginners because it is hard to get badly wrong.
Triadic schemes use three hues spaced 120° apart, such as red, yellow and blue. They are vibrant and balanced, popular in children’s brands and illustration. Let one hue dominate and use the others as accents.
Tetradic (square) schemes use four hues 90° apart. They offer the most variety and are the hardest to balance. Pick one dominant color and keep the rest small.
Monochromatic palettes use a single hue at different lightness and saturation levels. They are elegant and almost impossible to clash, which is why many minimal brands and dashboards use them.
Comparing the harmonies
| Harmony | Hue positions | Contrast | Feels | Good for |
|---|---|---|---|---|
| Monochromatic | 1 hue | Low | Calm, minimal | Dashboards, luxury, editorial |
| Analogous | Within 60° | Low to medium | Natural, harmonious | Wellness, food, lifestyle |
| Complementary | 180° apart | High | Energetic, bold | Sports, CTAs, posters |
| Split-complementary | Base + 150° + 210° | Medium to high | Lively but balanced | General brands, marketing sites |
| Triadic | 120° apart | High | Playful, vibrant | Kids, games, illustration |
| Tetradic | 90° apart | Very high | Rich, busy | Complex illustration, data viz |
The 60-30-10 rule
Interior designers have long used a simple proportion that works just as well on screens: about 60% of the space goes to a dominant color, 30% to a secondary color and 10% to an accent. On a website, the 60% is usually a neutral background (white, off-white or a very dark grey), the 30% is surfaces, headers and secondary elements, and the 10% is your brand accent on buttons, links and highlights.
This rule explains why a palette that looks great as five equal swatches can feel overwhelming on a page. Equal amounts of five strong colors compete for attention. The palette is fine; the proportions are not.
From scheme to working UI palette
A color harmony gives you hues. A usable palette also needs roles. Here is a practical structure:
- Neutrals: a background, a surface color, a border color, and two or three text greys. Tint them slightly toward your brand hue so they feel related.
- Primary: your main brand or action color, used for primary buttons and links.
- Accent: a second hue from your harmony, used for highlights, badges or illustrations.
- Semantic colors: green for success, red for errors, amber for warnings, blue for information. These are conventions users rely on, so do not drop them just because they are not in your harmony. Instead, adjust their saturation and lightness so they feel at home.
Then create lighter and darker variants of each with a color scale generator. A primary color usually needs a light tint for backgrounds, the base color for buttons, and a dark shade for hover states and text.
Checking your palette before you commit
Contrast. Every combination of text and background must meet WCAG requirements: 4.5:1 for normal text and 3:1 for large text and interface components. Many attractive mid-tone colors fail on white. Check them with the contrast checker, and read our WCAG contrast guide if the numbers are new to you.
Color blindness. About 8% of men have some form of red–green color vision deficiency. If your palette relies on red and green to mean different things, check it with a color blindness simulator.
Context. A palette can look different on a phone in sunlight, a dim laptop, or printed. Test it on real devices and on the materials you will actually use.
Where to find a starting color
If you have no brand color yet, start from meaning and audience rather than personal preference. Blues are common in finance and healthcare because they are associated with stability. Greens suggest growth and nature. Warm oranges and yellows feel friendly and energetic. These associations vary between cultures, so consider who your audience is.
You can also extract a palette from a photograph that captures the mood you want; nature photos and paintings already contain balanced colors. Our image palette extractor does this automatically. Or generate a few options with the random color generator and keep the ones that feel right.
A worked example
Say your base color is a warm brown, #8A6D3B. A split-complementary scheme adds a muted blue and a blue-violet. Assign roles: an off-white background tinted toward the brown, a near-black text color, the brown as primary, the blue as accent for links and highlights, plus standard semantic colors. Apply the 60-30-10 rule: off-white background (60%), light beige surfaces and borders (30%), brown and blue together for interactive elements (10%). Check contrast, adjust the brown slightly darker if it fails as text, and you have a palette that is both theoretically sound and practical.