Short answer: three to five colors you choose, plus their shades
How many colors a website palette needs, and which goes where
A website needs a main color, one or two accents and a set of neutrals for backgrounds and text: three to five colors you choose. The page itself will use many more exact values, as shades and tints of those. Recolor (recolor.page) starts with 5 and allows 2 to 10, and the palette is the plan: its lightest and darkest colors take the background and text, and the first of the others the page's heaviest color family.
Last updated
src/shared/mapping.ts) assigns roles, November 12, 2026| Role | Share of the page | Typical use | In Recolor |
|---|---|---|---|
| Neutrals | About 60% | Backgrounds, body text, borders | The lightest and darkest swatches take the background and the text; greys keep their place between them |
| Main color | About 30% | Header, hero, primary buttons, links | The first of the other swatches: the page's heaviest color family |
| Accent | About 10% | Badges, highlights, one call to action | The next two: the next families by weight |
| Extra colors | Small | Charts, status colors, illustrations | Any swatches left, or families wrapping around |
Three to five colors, and their shades
Most sites work with one main color that says whose site it is, one or two accents that pull the eye, and neutrals that carry the reading. Each of those becomes several exact values in the CSS: a darker shade for hover, a pale tint for a badge, a transparent version for an overlay. That is why a palette of five can be enough for a site whose CSS holds dozens of colors. More chosen colors make each one weaker; fewer make the main color carry everything.
Charts and status colors (success, warning, error) are the usual exception: they need distinct hues, and they come on top of the brand palette rather than from it.
The 60-30-10 split
A common rule of thumb, borrowed from interior design: about 60% of what you see in a neutral or dominant color, 30% in a secondary color and 10% in an accent. On a website the 60 is mostly background and text, the 30 the main color in headers, heroes and buttons, the 10 the accent that marks what matters. It is a starting point to judge by eye, not a measurement to hit; a photo-led shop and a text-heavy blog land in different places.
To judge it on a real page rather than in theory, load the page into Recolor and look at how much of it each swatch takes; How to preview a color palette on a real website walks through it.
What real sites use
Recolor's engine counts the distinct colors a page shows, after merging values closer than 0.04 in OKLab. On October 8, 2026 the fewest among 16 tested sites was news.ycombinator.com with 5, the most tailwindcss.com with 135, and the middle en.wikipedia.org with 29. A large number mostly means shades: tints, hovers and transparent versions of a few base colors. The full table is on Which sites load.
Across the home pages of the 1,000 most-linked websites, the median one uses 18 colors in 3 hue families, while its CSS writes 113 distinct values; How many colors does a website use? has the distribution.
Which color goes where, in Recolor
Recolor reads the page, groups its colors into families of near hue (within 25 degrees), and ranks the families by how much of the page they cover and how colorful they are. The palette's lightest and darkest colors take the page's background and text, the other way round on a dark page, and its greys keep their place between the two. The families take the other swatches in palette order: family 1 the first of them, family 2 the next, and so on; with more families than swatches the count wraps around, and with fewer than 4 colors the text's color takes families too. So the color you want to lead should come first among the colors that are neither the lightest nor the darkest, and the order of the rest is the order of importance. Strength, neutral tint and overrides has the details, Tint among them, which keeps a page's greys with a tint of swatch 1, and Use site colours in the Mapping panel fills the palette with the page's own colors: its families in that same order, then its background and text colors.
Checking the result
With the roles in place, check the pairs that carry text: body text on the background, labels on buttons, links in paragraphs. Each needs 4.5:1 for normal text; Black or white text on a color shows how to pick the text color for any swatch. Browse the palette gallery for ready five-color palettes, each with its contrast table.
Common questions
Is there a maximum number of colors for a website?
No fixed maximum. Three to five chosen colors plus neutrals is the usual range; Recolor allows 2 to 10 swatches.
Do black and white count as palette colors?
No, usually not: they are neutrals, like the greys. Most palettes add a near-black and a near-white so text and backgrounds match the palette.
Does the 60-30-10 rule work for websites?
Yes, as a starting point: neutrals for about 60%, the main color for about 30%, an accent for about 10%. Real pages drift from it, and that is fine.
Should every shade of the brand color count as a separate color?
No. Shades and tints are versions of one color; they belong to the same family and change with it.
Can Recolor build a palette from my site's own colors?
Yes. Load the site and press Use site colours in the Mapping panel: the swatches fill with the site's main colors in rank order.
Does the order of the colors in a palette matter?
Yes, in Recolor: the lightest and darkest colors take the background and the text, and the first of the others the page's heaviest color family, so that one should be the color you want to lead.