Some friends' notebooks are full of yellow highlighter, almost whole pages of it. Before the exam they still have to read everything from the start, because nothing stands out any more. One highlighted sentence pulls your eye straight to it. A highlighted page is the same as no highlighting at all.
Colour on a screen works the same way. Colour priority means the strongest colour is rationed: used only a little, and only for the one most important thing on the screen. Mrs. Sri's green plays the part of the highlighter, and the book button is the highlighted sentence.
One main action per screen
Each screen has one main goal. On the booking page, the goal is to book. Other actions are still there, but with a lighter visual weight. Visual weight is how strongly something pulls the eye:
| Weight | Looks like | On Mrs. Sri's page |
|---|---|---|
| Primary (main) | a solid green button, white text | "Book the room, pay on arrival" |
| Secondary | a green outline button, white background | "Ask Mrs. Sri on WhatsApp" |
| Tertiary (minor) | green underlined text | "Share this page", "See the full cancellation rules" |
This is the CSS for the three weights. background: none means no background, and text-decoration: underline adds an underline:
.btn-primary { color: white; background-color: #15803d; border: 1px solid #15803d; }
.btn-secondary { color: #15803d; background-color: #fff; border: 1px solid #15803d; }
.btn-tertiary { color: #15803d; background: none; border: none; text-decoration: underline; }
- All three stay green, because all three can be pressed. What differs is only how much green there is.
- Primary is filled (solid): the most green, seen first. White text on it is 5.02:1.
- Secondary has only a green border and green text on white (5.02:1): clearly pressable, but not competing.
- Tertiary is only underlined text, for actions people rarely need.
Two green buttons
Mrs. Sri adds an "Ask Mrs. Sri on WhatsApp" button right under "Book the room, pay on arrival", in exactly the same solid green. A guest who came to book: which button do they see first?
Neither. If both buttons are solid green, the eye has no reason to pick either. Guests have to read both labels before they know which one they want.
You can check this with the squint test from the text hierarchy lesson: blur the page by 3px. With two or three solid buttons, what's left is two or three green blocks of the same size. With one solid button, only one green block is left, and that block is what you see first.
The green area can be measured too. In the Lab, with a card 320px wide in Chrome, the green background fills about 37% of the card when all three actions are solid. When only one is solid, it fills about 15%. Both numbers include the chosen "2 nights" button, which is green too. The same green, but a very different ration.
The 60-30-10 rule: a ration, not a formula
The 60-30-10 rule comes from interior design. It's a practical guideline, not a research result:
- 60% dominant colour: neutral. Here, the
#f1f5f9page background and the white card. - 30% secondary colour: supporting. Here, the text greys
#1f2937and#475569, the#e2e8f0borders, and the room photo. - 10% accent colour: a bright colour, only for what matters. Here, the brand colour, green
#15803d.
The numbers don't need to be exact. The point is to remember that the accent must be scarce: 15% green on Mrs. Sri's card still stands out, but 37% starts to feel like background.
Semantic colours have their own job
Besides the brand colour and the neutrals, a UI needs semantic colours, which are colours for status. Use them consistently, and make sure their contrast passes when they are used for text:
| Status | Colour | Contrast on white | Example |
|---|---|---|---|
| Error | red #b91c1c |
6.47:1 | "14 Dec is booked. Pick 1 or 2 nights." |
| Warning | orange #b45309 |
5.02:1 | "Only 1 room left for this date." |
| Success | dark green #14532d |
9.11:1 | "Booking sent." |
| Info | blue #1d4ed8 |
6.70:1 | "Check-in starts at 14:00." |
- Errors are always red. When an error appears it should draw attention, because the guest can't continue.
- The bright yellow and green people often use, such as
#F59E0B(2.15:1) and#10B981(2.54:1), fail as text on white. Use their darker versions. - On this page green already means "can be pressed", so a success message uses dark green as text, not as a button.
- Add words or an icon, so the status still reads without colour.
⚠️ Highlighter everywhere
- Every action solid. Two, three or five solid buttons means none is the main one. Pick one.
- Rainbow buttons to tell them apart. Five buttons in five bright colours don't create an order. Instead, they all pull the eye equally. Tell them apart by weight (solid, outline, text), not by hue (the kind of colour).
- The brand colour everywhere. Headings, icons and borders in green use up the accent's ration.
- Semantic colours that fail contrast. Yellow
#F59E0Bas text is only 2.15:1.
TL;DR: The strongest colour is rationed, kept for one main action per screen: primary (main) is a solid (fully filled) button, secondary is an outline button, tertiary (minor) is underlined text. Two solid buttons means neither is seen first. The squint test (the page blurred by 3px) shows it, and on Mrs. Sri's card the green area rises from about 15% to 37% when all three actions are solid. The 60-30-10 rule (60% dominant neutral colour, 30% secondary colour, 10% accent) is a practical guideline from interior design: the accent must be scarce. Semantic colours, the colours for status, stay consistent: red for errors, orange for warnings, green for success, blue for info. Use dark versions that pass contrast, with words alongside.
⚡ One main action per screen
Write:
.btn-primary { color: white; background-color: #15803d; border: 1px solid #15803d; }
.btn-secondary { color: #15803d; background-color: #fff; border: 1px solid #15803d; }
.btn-tertiary { color: #15803d; background: none; border: none; text-decoration: underline; }
Meaning: Each screen has one main action. All three buttons stay green, because all three can be pressed. What differs is only how much green there is: primary (main) filled (solid), secondary outlined, tertiary (minor) underlined text.
⚡ Two green buttons
Guess first: an "Ask Mrs. Sri on WhatsApp" button goes right under the book button, in the same solid green. Which one is seen first?
Neither. The eye has no reason to pick either, so guests have to read both labels first.
Meaning: Check with the squint test: blur the page by 3px, then look at what's left. One solid button leaves one green block. Tell actions apart by weight, which is how much green they have (solid, outline or text), not by a rainbow of colours.
⚡ 60-30-10: the accent is a ration
Meaning: The 60-30-10 rule splits the area of a screen: 60% dominant neutral colour (the background), 30% secondary colour (text greys, borders, photos), 10% accent colour (green, only for what matters). It's a practical guideline from interior design, not an exact formula.
⚡ Semantic colours in dark versions
Meaning: Semantic colours are colours for status: red for errors #b91c1c, orange for warnings #b45309, green for success #14532d, blue for info #1d4ed8. Bright yellow #F59E0B as text on white is only 2.15:1, so it fails. Add words or an icon too.