Visual hierarchy and contrast
6 minThe eye groups, ranks and balances a screen before anyone reads a word. After this lesson you can run a squint test and fix a screen whose order is wrong.
Lesson video
Tastebud · 5:42 · Captions on screen
Squint at a screen, and what you can still see is its real order of importance.
- Why. The eye groups what sits close or looks alike, and goes first to what is biggest, boldest or most different, before reading any words.
- Real example. Blur Swiggy's home page and three white cards on orange stay clear, so the main choices survive. So does the black app banner at the top. (Swiggy, Nov 2026)
- When to break it. Low contrast can be the point. GitHub Copilot in VS Code shows suggested code in grayed text, so it reads as not yours yet until you press Tab.
- Common mistake. Making several things loud at once. Swiggy's Dineout card for Starbucks stacks three offers in green and purple, while the price and distance sit in plain grey.
Our take. A screen's hierarchy is whatever survives a squint, whatever the designer meant. Blur your screen before every review, and when the blur disagrees with your plan, trust the blur and change the screen.
Swiggy Dineoutswiggy.com/dineout

- 1. The photo, the name and the 4.7 rating
- 2. Flat 25% off on walk-in, in a solid green bar
- 3. Up to 10% off with bank offers, in pale green
- 4. Faint grey: Coffee · Tea, ₹900 for two, 4.3 km, then the PAYTMNEW line

- 1. The photo, the name and the 4.7 rating
- 2. Coffee · Tea · ₹900 for two · 4.3 km, in dark text
- 3. One offer: Flat 25% off on walk-in
- 4. The other offers folded into + 3 more offers
Left: the Starbucks card in Swiggy Dineout's Mumbai list on swiggy.com, 28 Nov 2026. Right: our fix, with the same content. Someone picking a place chooses by what it serves, the price and the distance first.
Gaps decide what belongs together
The eye reads things that sit close, or look alike, as one group. Keep gaps inside a group clearly smaller than gaps between groups, and most borders and dividers can go.
- Name, line and offer drift apart
- Cards run into each other
- Borders get added to patch it
- Name, line and offer sit close
- Wide orange gaps split the cards
- No extra lines needed
Right: how Swiggy spaces its three service cards on swiggy.com, Nov 2026.
One thing leads, the rest step down
Size, weight, colour and contrast set the rank. Give the main task the strongest treatment and step the rest down a level. Balance means no corner pulls the eye on its own. If everything is loud, nothing stands out.
- Make the facts bold and green too: now nothing leads
- Put a border round each offer: more lines, same order
- Keep one offer bar: Flat 25% off on walk-in
- Fold the other offers into '+ 3 more offers'
- Set Coffee · Tea, ₹900 for two and 4.3 km in dark text
Fixes for the Starbucks card in Swiggy Dineout's Mumbai list on swiggy.com, 28 Nov 2026. The fixes are ours.
Try it
Squint at Swiggy's home page
Swiggy's home page, recreated from swiggy.com on a phone. Flip from sharp to blurred and notice what you can still make out at 7 px.
Open in app for better offers & a smoother experience!
Order food & groceries. Discover best restaurants. Swiggy it!
FROM RESTAURANTS · UP TO 60% OFF
THE EVERYTHING STORE · EAT OUT & SAVE MORE
- Read it normally: banner, search, slogan, three service cards.
- Before you flip, guess which two things you would notice first at a glance.
Quick check
Your assistant shows follow-up questions right under its answer, in the same font. Testers read them as part of the answer. Which change fixes the cause?
Watch next
Watch it for How squinting or blurring a design shows which parts catch the eye first, and whether the important ones are among them.
Watch it for How colour and size show what matters most, and how closeness and shared areas show what belongs together.
Connects to: 1.1 UX laws · 14.2 Accessibility · 10.3 Output, previews and variants · 5.4 Judging an AI pattern
Sources · checked Nov 2026
- Swiggy: swiggy.com home page on a phone-size screen, sharp and blurred (26 Nov 2026)The toggle's wording and what survives the blur (the three white cards on orange and the black 'Open in app' banner with its orange OPEN APP button); the Starbucks card in Swiggy Dineout's Mumbai list (28 Nov 2026): Coffee · Tea, ₹900 for two, Fort, 4.3 km, 'Flat 25% off on walk-in + 1 more', bank offers and a PAYTMNEW line
- Nielsen Norman Group: Visual Hierarchy in UX: Definition (Kelley Gordon, 17 Jan 2021)Hierarchy comes from colour and contrast, scale and grouping; squinting or blurring a design uncovers its hierarchy; 'If everything is contrasted, then nothing stands out'
- Nielsen Norman Group: Proximity Principle in Visual Design (Aurora Harley, 2 Aug 2020)Items close together are seen as one group, and proximity can overpower similarity of colour or shape
- Nielsen Norman Group video: Squint Test (Huei-Hsin Wang, 11 Dec 2023)The squint test finds the elements that catch attention and checks that high-priority content stands out
- Laws of UX: Law of ProximityThe Gestalt grouping principles (proximity, similarity, continuity, closure, connectedness) describe how people see patterns
- GitHub Docs: Getting code suggestions in your IDE with GitHub CopilotIn VS Code, Copilot suggests code 'in grayed text', and Tab accepts it