All UX laws

Law of Similarity

Give things the same look and people assume they do the same job.

Things that look alike are seen as belonging together, or as doing the same thing.

Where Law of Similarity comes from

Part of
The Gestalt principles of perception, alongside proximity, closure and continuity
First described
Max Wertheimer, a German psychologist, in a 1923 paper on how people group what they see
What counts as alike
Colour, shape, size, orientation, texture and typeface. Colour is usually the strongest
Works best for
Showing what is clickable, which items are selected, and which data belongs to the same series

The law of similarity is one of the Gestalt principles of perception, described by the German psychologist Max Wertheimer in a 1923 paper, translated into English as "Laws of Organization in Perceptual Forms". Wertheimer showed that people do not see a scene as separate dots and patches, but organise it into groups, and that things sharing a property such as colour or shape are grouped together. Later researchers found that similarity can even outweigh nearness: evenly spaced dots in alternating colours read as columns or rows of the same colour, not as one even grid.

Make the on filters look on

Eight filter chips look identical, though three are switched on. Choose how an on filter should look, then squint at the row: the three become a group only when they share a look the others lack.

How to apply it

Give things with the same role or state the same look, and make different things look clearly different.

How to apply Law of Similarity, step by step

  1. List the roles on your screen: links, primary buttons, secondary buttons, labels, selected items, warnings.
  2. Give each role one look and use it everywhere, so people learn it once.
  3. Make different roles look clearly different, by more than a slight shade of the same colour.
  4. Check states: selected, disabled and active should each be obvious at a glance.
  5. Add a second cue beyond colour, such as fill, an icon or an underline, so the grouping works for everyone.

Law of Similarity in practice: a concrete example

Links, buttons and states that look the part

On most well-designed sites, every link shares one colour and every primary button shares one style, so people learn once what is clickable and then recognise it everywhere. Filters work the same way: in a good shop, every applied filter is filled and every other one is outlined, so the selected ones read as a group across size, colour and fit. Break that, for example by colouring a heading the same blue as the links, and people start clicking things that do nothing.

Common Law of Similarity mistakes

  • Styling links, headings and labels alike, so people cannot tell what is clickable.
  • Showing selected and unselected states with a difference too small to notice at a glance.
  • Using the same colour for different meanings, such as blue for links and blue for a decorative highlight.
  • Giving the same kind of thing different styles on different screens, which makes them read as different things.
  • Relying on colour alone, which fails for people who see colour differently. Add a second cue, such as fill, an icon or an underline.

When Law of Similarity doesn't apply

Similarity groups things, so do not use it where you want one thing to stand out. The recommended plan or the one urgent warning should look different from its neighbours, which is the Von Restorff Effect. And similarity is not a reason to make everything identical: things that do different jobs, such as a primary action and a destructive one, need to look clearly different even if they sit side by side.

How to tell you got it right

Blur your eyes or shrink the screen until you cannot read the words. Can you still tell which items are clickable, which are selected, and which belong together?

Law of Similarity: common questions

What is the law of similarity?

The law of similarity is a Gestalt principle: people see things that look alike, in colour, shape or size, as belonging to the same group. In UX it means giving things with the same role or state the same look.

What is an example of the law of similarity?

All links on a site sharing one colour, so people recognise them as clickable, or applied filters in a shop being filled while the rest are outlined, so the selected ones read as a group.

Who discovered the law of similarity?

It is one of the Gestalt principles described by the German psychologist Max Wertheimer in a 1923 paper on how people organise what they see into groups.

What is the difference between similarity and proximity?

Proximity groups things that are close together. Similarity groups things that look alike. When the two conflict, similarity can win, so items that look alike are grouped even if they are spread apart.

How do you use the principle of similarity in UI design?

Give each role one consistent style, such as one look for links, one for primary buttons and one for selected items, and make different roles look clearly different. Add a cue beyond colour so it works for everyone.

Practise it on a real challenge

Shop Filters — which ones are switched on?

A clothing shop's filter screen shows size, colour and fit as rows of chips. The chips that are switched on look almost exactly like the ones that are off, so shoppers can't tell what is applied and keep tapping to check.

Related reading

  • Gestalt principles: the laws of grouping, with UX examples

More UX laws

  • Law of Common Region
  • Law of Proximity
  • Law of Continuity
  • Law of Pragnanz
  • Law of Closure
  • Miller's Law
UX QuestUX Laws and PrinciplesNotion TemplatesBlogPricingAboutContactPrivacy PolicyTerms of ServiceRefund PolicySitemapChangelogPopular UX laws:60-30-10 RuleDesign every stateStatistical PowerFunnel TriageAccessible contrastDensity Matches ContextHick's LawFitts's LawAll UX laws