Perception

Law of Similarity

Elements that look alike — in color, shape, size or style — are perceived as related or as having the same function.

Experience · UX & Design Science1 research source
Share
A grid of shapes where the gold squares light up together as one group — an illustration of Law of Similarity.

See it in action

The same screen without and with Law of Similarity. Watch both sides play out, then compare the outcome.

Every action looks the sameEdit projectChanges are not saved yetProject nameSpring launchDeleteDuplicateSaveProject deleted

Destructive and primary actions share one style, so a hurried tap lands on Delete.

Style signals functionEdit projectChanges are not saved yetProject nameSpring launchDeleteDuplicateSaveSaved ✓

The primary action is gold and the destructive one is red: people find Save at a glance and avoid Delete.

What to watch: how quickly the finger finds the right button once colour separates the action types.

Do

Give elements that do the same thing the same look, and make different functions look different.

Don’t

Style links, buttons and plain text alike, or give a destructive action the primary style.

Key takeaways

  • Style all interactive elements consistently so users can recognize them.
  • Don't style non-clickable text like links or buttons.
  • Use a distinct style only for what should stand out.

Quick facts

Also known as
—
Described by
Max Wertheimer
Year
1923
Category
Perception

Law of Similarity explained

The Law of Similarity is a Gestalt principle stating that elements that look alike (sharing colour, shape, size, texture or style) are perceived as related, even if they are not next to each other.

Users rely on similarity to learn an interface. Once they discover that blue underlined text is a link, or that filled buttons are primary actions, they expect every element with that styling to behave the same way.

This makes consistency a usability feature. When similar-looking elements behave differently, or elements that behave the same look different, people make mistakes and lose confidence.

Where it comes from

One of the Gestalt grouping principles described by Max Wertheimer in 1923.

How it shows up in apps

Consistent button, link and tag styles let users learn what is tappable once and apply it everywhere. Inconsistent styling causes missed actions and taps on things that do nothing.

Law of Similarity examples

Making every tappable chip share the same pill shape and color — and keeping static labels plain — helps users understand at a glance which filters they can toggle.

  • Consistent link and button styles

    Using one colour and treatment for every clickable link lets users spot interactive elements instantly across the whole product.

  • Status colours

    Dashboards that use the same green for every 'healthy' status and the same red for every 'error' let people scan dozens of rows and spot problems without reading labels.

  • Highlighting differences

    In a list of identical items, giving one a different colour or shape (such as an unread message or a featured plan) makes it stand out precisely because it breaks the similarity.

How to apply Law of Similarity

  1. Style elements with the same function identically throughout the product.
  2. Define clear visual tokens for interactive states, statuses and hierarchy in a design system.
  3. Avoid styling non-interactive text to look like links or buttons.
  4. Use deliberate dissimilarity to draw attention to the one element that matters.
  5. Do not rely on colour alone; combine colour with shape, icons or text for accessibility.

Want Law of Similarity checked in your own product? Our mobile app ux audit evaluates it alongside the other principles that shape how users decide, onboard and stay.

Common mistakes

  • Using the brand colour for both decorative headings and clickable links, so users cannot tell what is interactive.
  • Multiple button styles for the same type of action on different screens.
  • Encoding meaning only in colour, which fails for colour-blind users.

How to measure it

Usability tests and first-click tests show whether users correctly identify interactive elements and statuses. Design-system audits that count style variations for the same component reveal inconsistency before it reaches users.

Frequently asked questions

What is Law of Similarity?

Elements that look alike — in color, shape, size or style — are perceived as related or as having the same function.

Where does Law of Similarity come from?

One of the Gestalt grouping principles described by Max Wertheimer in 1923.

How does Law of Similarity apply to app design?

Consistent button, link and tag styles let users learn what is tappable once and apply it everywhere. Inconsistent styling causes missed actions and taps on things that do nothing.

What is an example of the Law of Similarity in web design?

Making all links the same colour, or all primary buttons the same filled style, so users recognise them as a group with the same behaviour wherever they appear.

How does similarity relate to the Von Restorff effect?

Similarity groups alike items together; the Von Restorff effect describes how the one item that differs from the group stands out and is remembered.

How do you measure Law of Similarity in a product?

Usability tests and first-click tests show whether users correctly identify interactive elements and statuses. Design-system audits that count style variations for the same component reveal inconsistency before it reaches users.

Sources

  1. Wertheimer, M. (1923). Untersuchungen zur Lehre von der Gestalt II. Psychologische Forschung, 4. Find on Google Scholar ↗

View all 60 laws of UX

Keep exploring

Law of Similarity in practice

Keep exploring

Certifications that test it

Pass it on

Teach this to your team

Share it before your next design review — a shared vocabulary makes product decisions faster.

Join free

Get the ideas, not the noise.

Sign up with Google and we’ll send you short UX psychology tips by email — why people tap, stall and leave, and what to do about it. Unsubscribe anytime. Prefer something to keep? Get the free Laws of UX guide as a PDF.

Get the free Laws of UX PDFFree · no spam · unsubscribe anytime
Free certification

Can you apply Law of Similarity under pressure?

Test it in 18 real product scenarios in the free Product Design Science test. Score 70% and earn a founder-signed certificate anyone can verify.

  • Credential ID
  • QR verification
  • LinkedIn-ready
Free PDF · 74 pages · 2 editions

The Laws of UX, in one field guide

60 research-backed principles in 6 categories — what each one means, why it works on the human brain and how to use it on your own screens. Written by Sushant Singh, founder of Science of Apps, who has scaled consumer apps to lacs of users and spent 10+ years leading product across startups and digital businesses in the US, EU & India.

Pick your edition
Free. No card, no paywall — just your email.
Free PDF · 74 pages

Get Laws of UX by email

Choose your edition

You’ll also get occasional UX psychology tips. Unsubscribe anytime. Privacy policy

Free PDF · 90 pages · 2 editions

100+ Subscription Paywalls, decoded

110 real paywalls from top apps, taken apart, rated out of 5 and decoded with the Laws of UX — plus the frameworks, copy and checklists to ship your own. By Sushant Singh, founder of Science of Apps.

  • 110 paywalls rated
  • 34 Laws of UX
  • 12 frameworks

Which paywall scored 4.8 out of 5, and which scored 2.6? It’s all inside.

Pick your edition
Free. No card, no paywall — just your email.
Free PDF · 90 pages

Get 100+ Paywalls, Decoded by email

Choose your edition

You’ll also get occasional UX psychology tips. Unsubscribe anytime. Privacy policy