Skip to main content

Guide

How to choose a color palette for a website

By · Updated · 7 min read

Start from one color that carries the brand, build a neutral background and text scale around it, add one or two accents with a harmony rule, use them in roughly a 60-30-10 split, and check every text pair for at least 4.5:1 contrast before you commit.

What a website palette actually needs

A palette for an interface is not five pretty swatches. It is a set of roles, and each role has a job. Most sites need the same handful:

RoleTypical share of the screenWhat it is for
Background / surface~60%Page and card backgrounds. Usually a near-white, cream or near-black.
Text (ink)small area, high importanceBody copy and headings. Must reach 4.5:1 on the background.
Secondary / muted~30%Borders, secondary panels, muted text, section bands.
Primary / accent~10%Buttons, links, focus rings, the one thing you want clicked.
Status colorsoccasionalSuccess, warning and error states. Never the only signal.
The roles a website palette has to fill.

Choosing colors in this order — background and text first, accent last — avoids the most common failure: a beautiful accent that nothing readable can sit on.

Step 1: pick the one color that matters

Start with a single base color: an existing brand color, a color from a photo you will use, or a mood ("calm", "loud", "earthy"). Everything else is derived from it. If you have no starting point, browse by hue on Browse by color or open a group such as blue palettes and take the color you keep coming back to.

Prefer a base with mid lightness. A very pale or very dark base leaves little room to build lighter and darker variants for hover states, borders and backgrounds.

Step 2: build neutrals around it

Neutrals carry most of an interface. Pure grey (#808080 and friends) tends to look dead next to a saturated brand color; a neutral with a trace of the brand hue, or of its warm or cool side, looks intentional. A cream such as #F6F3ED with an ink such as #1C1917 reaches 15.8:1, comfortably past every WCAG threshold.

You need at least three neutrals: a background, a surface one step away from it (cards, inputs), and a text color. A fourth, mid-grey neutral for borders and secondary text is almost always worth adding. The neutral palettes show this structure: a quiet base plus one accent.

Step 3: choose accents with a harmony rule

Harmony rules are fixed relationships on the color wheel. They do not guarantee a good palette, but they give you candidates that are related rather than random. Tinta’s Color Studio supports six:

RuleHues usedFeelsGood for
AnalogousNeighbors, about ±30° and ±60°Calm, cohesiveContent sites, wellness, editorial
ComplementaryBase and the hue opposite (180°)High tensionA single strong call to action
Split-complementaryBase plus 150° and 210°Contrast without the clashMarketing pages, illustration
TriadicThree hues 120° apartVivid, balancedPlayful brands, kids, games
TetradicTwo complementary pairs (90° steps)Rich, busyData visualisation, sparingly
MonochromaticOne hue, several lightnessesAlways harmoniousDashboards, minimal brands

For a website, analogous and monochromatic schemes are the safest; complementary and split-complementary give you an accent that stands out against the rest. Tetradic schemes are easy to overuse: pick one of the four as the accent and demote the others to illustrations or charts.

Step 4: apply the 60-30-10 split

The 60-30-10 rule comes from interior design: about 60% of what you see is the dominant color, 30% a secondary, 10% an accent. On a website the 60% is nearly always a neutral background, the 30% is surfaces, bands and secondary text, and the 10% is the brand or accent color on interactive elements.

The numbers are a guide, not a law. Their real value is the hierarchy: if your accent covers 40% of the page, it can no longer tell people where to click.

css
:root {
  --color-bg: #F6F3ED;      /* 60%: page background */
  --color-surface: #FFFFFF; /* 30%: cards, inputs */
  --color-muted: #78716C;   /* 30%: borders, secondary text */
  --color-ink: #1C1917;     /* body text */
  --color-accent: #7C3AED;  /* 10%: buttons, links */
}
A palette written as roles, not as "color-1 … color-5".

Step 5: check contrast and color blindness

Check every pair that will carry text. Body text needs 4.5:1 against its background for WCAG AA, large text and UI components need 3:1. White text on #7C3AED reaches 5.7:1 and passes; white on an amber such as #F59E0B reaches only 2.15:1, while black on the same amber reaches 9.8:1. The contrast checker scores every pair at once and suggests the nearest passing shade. WCAG contrast explained covers the thresholds in detail.

Then run the palette through the color blindness simulator. If your success and error colors collapse into the same brown, add an icon or a label, as described in designing for color blindness.

Step 6: test it on a real layout

Swatches in a row lie. A color that looks balanced as a 100px square can overwhelm a full-width hero or disappear on a small button. Paint the palette onto a layout before you decide: the Color Studio previews a palette on a landing page, an e-commerce grid, a dashboard, a brand board, a poster and a mobile app, and every palette page on Tinta shows the same UI preview.

  • Is the primary button the most visible thing on the page?
  • Can you read body text for a whole paragraph without strain?
  • Do hover and focus states differ from the resting state by more than hue alone?
  • Does the palette still work in a dark section, or do you need a darker variant? A Tailwind-style shade scale gives you those variants.

Shortcuts

If you would rather start from something finished, browse the curated color palettes, filter by tone (for example pastel or dark), and open any palette in the Studio to adjust it. Every palette exports to CSS variables, Tailwind, SCSS and JSON.