Sub topic 6
Balancing Colours with the 60-30-10 Guideline
You now have a primary colour, a neutral scale and an accent. This chapter covers how much of each to use on a page. The 60-30-10 guideline is a starting ratio for that. It gives you a quick way to spot pages that feel noisy, flat or unfocused, and it suggests what to change.
This chapter assumes you have read the earlier chapters on colour roles and HSL, and that you can write CSS custom properties. It uses the tokens from those chapters, such as --neutral-50, --primary-700 and --accent-500.
What the guideline says
The guideline splits the visible colour on a screen into three shares:
- 60% dominant. The colour that fills most of the space. On a website this is almost always a neutral, such as the page background and large surfaces.
- 30% secondary. A supporting colour that gives structure. Headers, sidebars, footers, cards and large bands often use it. This is usually the primary colour or a darker neutral.
- 10% accent. The colour that draws attention: a call-to-action button, a badge, a highlighted link or a chart series.
The ratio comes from interior design, where it describes a room's walls, furniture and decorative objects. It is a rule of thumb, not a standard. Nothing in CSS or WCAG enforces it. It works because it encodes two facts about perception. Large areas of a quiet colour let the eye rest, and a small amount of a strong colour stands out because it is rare.
Mapping the proportions onto your palette
The three shares do not match the three palette roles one to one. Primary, neutral and accent describe where a colour comes from. The proportions describe how much of it you see. A typical mapping looks like this:
| Share | Typical role | Where it appears | Example tokens |
|---|---|---|---|
| 60% | Light neutral | Page background, main content area, card fill | `--color-bg` |
| 30% | Primary or dark neutral | Header, footer, sidebar, hero band, primary buttons | `--primary-700`, `--color-button-bg` |
| 10% | Accent | Main call to action, notification dot, highlight | `--color-highlight` |
Three details change how you apply this table.
- Text and borders also use the neutral scale. Body text, dividers and input borders come from the same family as the background. They take little area, so they do not change the 60% much. They do matter for contrast, which a later chapter covers.
- The secondary 30% can be neutral. A brand with a restrained look may use a dark neutral for the header and keep the primary colour for small elements. The primary then sits closer to 10%, and the accent may shrink to 5% or less. The roles stay the same, but the proportions move.
- The accent can only stay at 10% if nothing else competes with it. If you add a second saturated colour in the secondary share, your 10% is no longer the loudest thing on the page.
Area is not the same as visual weight
A pure area count is misleading because colours differ in how much attention they take. Three properties raise a colour's visual weight:
- Saturation. A saturated orange takes more attention than a grey of the same size.
- Contrast with its surroundings. A dark patch on a light page is heavier than a light patch on a light page.
- Position and shape. Elements at the top of the page or in the first screen weigh more. A thin line weighs less than a solid block of the same colour.
This is why the accent works at 10%. --accent-500 is hsl(35 95% 50%), which is highly saturated, and it sits against a low-saturation neutral. A small orange button is therefore the most visible object in the viewport. If you make the accent muted, such as hsl(35 30% 60%), it blends in and you would need far more than 10% to get the same emphasis.
The opposite mistake is common too. A large accent block, such as a full-width orange hero band, feels much bigger than 10% and makes a page tiring to read. If an area feels too loud, reduce its saturation or its size before you change the hue.
Applying the guideline in CSS
You can apply the guideline through the semantic tokens from the earlier chapters. Components then pick a role, and the proportions follow from where you use each role. The example below builds a page whose header and footer use the secondary colour, whose body uses the dominant neutral, and which has one accent button.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>60-30-10 demo</title>
<style>
:root {
--primary-700: hsl(220 80% 34%);
--neutral-50: hsl(220 15% 97%);
--neutral-300: hsl(220 12% 80%);
--neutral-900: hsl(220 20% 12%);
--accent-500: hsl(35 95% 50%);
--color-bg: var(--neutral-50);
--color-text: var(--neutral-900);
--color-border: var(--neutral-300);
--color-secondary: var(--primary-700);
--color-on-secondary: var(--neutral-50);
--color-highlight: var(--accent-500);
--color-on-highlight: var(--neutral-900);
}
body {
margin: 0;
min-height: 100vh;
display: flex;
flex-direction: column;
background: var(--color-bg);
color: var(--color-text);
font-family: system-ui, sans-serif;
}
header, footer {
background: var(--color-secondary);
color: var(--color-on-secondary);
padding: 1.5rem 2rem;
}
main {
flex: 1;
padding: 2rem;
}
.card {
border: 1px solid var(--color-border);
padding: 1rem 1.5rem;
max-width: 36rem;
}
.cta {
display: inline-block;
padding: 0.6rem 1.2rem;
background: var(--color-highlight);
color: var(--color-on-highlight);
border-radius: 4px;
font-weight: 600;
text-decoration: none;
}
</style>
</head>
<body>
<header>Studio Hue</header>
<main>
<div class="card">
<h1>Colour that stays in proportion</h1>
<p>The page background is the dominant neutral. The header and footer carry the secondary colour.</p>
<a class="cta" href="#">Start the tour</a>
</div>
</main>
<footer>Contact · Terms</footer>
</body>
</html>Two design choices are worth noting. The accent has its own --color-on-highlight token, so the text on the button is chosen once and not guessed at each use. The button is the only element that uses --color-highlight, so nothing else competes with it. If you later decide a second element should use the accent, ask whether it should be the main action. If it should not, give it a primary or neutral treatment.
Estimating the proportions in the browser
You can get a rough area share for each background colour on a rendered page. The script below runs in the browser console. It assumes the page background is set on body, as in the example above. For each element with a non-transparent background it measures the element's box, subtracts the boxes of its direct children that also have backgrounds, and adds the result to a total for that colour.
function isPainted(color) {
return color !== "rgba(0, 0, 0, 0)" && color !== "transparent";
}
function areaShares() {
const totals = new Map();
const elements = [document.body, ...document.body.querySelectorAll("*")];
for (const el of elements) {
const color = getComputedStyle(el).backgroundColor;
if (!isPainted(color)) continue;
const box = el.getBoundingClientRect();
let area = box.width * box.height;
for (const child of el.children) {
if (isPainted(getComputedStyle(child).backgroundColor)) {
const childBox = child.getBoundingClientRect();
area -= childBox.width * childBox.height;
}
}
totals.set(color, (totals.get(color) || 0) + Math.max(0, area));
}
const sum = [...totals.values()].reduce((a, b) => a + b, 0);
return [...totals.entries()]
.map(([color, area]) => ({ color, share: Math.round((area / sum) * 100) }))
.sort((a, b) => b.share - a.share);
}
console.table(areaShares());The result is an estimate. It ignores gradients, background images, text, overlapping or absolutely positioned elements, and children that extend beyond their parent. It also counts only the current scroll size of body. Use it to catch large errors, such as an accent covering 25% of the page. Do not try to tune the numbers to the last percent.
When to break the ratio
The guideline is a default, and there are good reasons to leave it.
- Dense interfaces. Dashboards and admin tools often use more than 90% neutral. The accent may fall to 3% to 5%, and status colours take part of what remains. The pattern is the same: a large quiet area and a small area that draws the eye.
- Marketing and landing pages. A full-bleed brand band can reach 40% of one screen. This works when the band is a deliberate hero and the rest of the page returns to neutral.
- Data visualisation. Charts with several series need more distinct hues than a three-role palette provides. Keep the page chrome at 60-30-10 and treat the chart as a separate, bounded area.
- Dark mode. The proportions carry over, but the dominant neutral becomes dark. Because you only reassign the semantic tokens, the 60% still comes from
--color-bg. Check that the accent does not glare against the dark background, since the same saturation looks stronger there.
A quick way to diagnose a page that feels wrong is to ask which role is out of proportion.
Common errors
- Using the accent for decoration. If every link, icon and heading uses the accent, it no longer marks the important thing. Reserve it for what you want clicked.
- Splitting the 30% across two strong colours. Two saturated colours of similar area fight for attention. Pick one secondary and use a neutral for the rest.
- Treating the numbers as exact. A page at 70-25-5 can be well balanced. The test is whether the eye goes to the right place first.
- Ignoring state colours. Hover, focus and error states add colour. A form full of error red temporarily changes the balance, which is correct because the error should stand out.
Exercise
A landing page has a white background, a full-width bright blue hero band that fills the whole first screen, and a small orange "Sign up" button inside the band. Reviewers say the orange button is hard to notice. Using the 60-30-10 guideline, what is the likely cause, and what is one change you could make?
Show answer
The first screen is mostly the secondary (primary blue) colour instead of the dominant neutral, and the orange accent sits on a highly saturated background, so it has less contrast and less visual distinction. Likely fixes: shrink the hero band or lower its saturation so more of the first screen is neutral, or change the button's surroundings so it contrasts clearly, for example placing it on a neutral area or using a darker or lighter accent shade. Either change restores the accent as the rarest and most visible element.
Exercise
Why does the accent usually work at only about 10% of the area, and what happens if you use a low-saturation accent at 10%?
Show answer
The accent works at 10% because it is rare and strongly saturated against low-saturation neutrals, so it takes visual weight beyond its area. A low-saturation accent at 10% blends in with the neutrals and fails to draw attention, so it would need to be much larger or more saturated to do its job.