PRODUCT MASTERY / PRODUCT PSYCHOLOGY
Law of Similarity
The eye groups elements that resemble each other into a single set. Shared colour, shape, or size signals that things belong together and behave alike, letting a user read structure from an interface before reading a word of it.
Overview
Laws of Organization in Perceptual Forms
Max Wertheimer, 1923
Classics in the History of Psychology (free)The Law of Similarity is one of the Gestalt principles of perceptual grouping set out by Max Wertheimer in his 1923 paper on the organisation of perceptual forms. Wertheimer described how the visual system does not register a scene as a loose collection of independent dots and lines. It organises them, and one of the forces doing the organising is resemblance. In his words, there is a tendency for like parts to band together. Elements that share a quality, whether colour, shape, size, or orientation, are perceived as belonging together, even when other elements sit between them.
The classic demonstration is a grid of dots in which some are dark and some are light. Spaced evenly, the grid could be read as rows or as columns, but the moment alternate columns are darkened the eye reads columns, because the dark dots band with the dark and the light with the light. The grouping is involuntary. A viewer cannot easily choose to see the grid the other way. This is what makes similarity a perceptual principle rather than a stylistic preference. It describes how vision works, not how a designer would like it to work.
For product teams, the principle is a practical tool for making an interface legible without adding explanatory text. When controls that share a behaviour share a look, when items of one category share a treatment, and when a status colour means the same thing everywhere, the user reads the structure of the screen through perception alone. The principle is descriptive and qualitative rather than a precise quantitative law. It tells a designer that resemblance groups elements, but it does not predict exactly how strong a colour difference must be to break a group. That judgement still belongs to the designer.
The Research
Like bands with like
Wertheimer named similarity as one of the factors of perceptual grouping, describing the tendency of like parts to band together into a perceived whole.
A grouping law
Similarity sits alongside proximity, closure, and continuity as one of the established Gestalt grouping principles that describe how the visual system organises a scene.
Applied to interfaces
NNG documents that elements sharing colour, shape, or size are perceived as related, and treats consistent visual rules as critical to a usable interface.
"I stand at the window and see a house, trees, sky. And now, on theoretical grounds, I could try to count and say: here there are ... 327 brightnesses. Do I have '327'? No. I see sky, house, and trees."
— Max Wertheimer, Laws of Organization in Perceptual Forms, 1923
Three dimensions that produce grouping
Colour
Shared colour is among the strongest grouping cues. Nielsen Norman Group notes that consistent colouring unites elements and signals shared function, such as a link colour marking clickability.
Shape
Consistent shape suggests that elements perform similarly or belong to the same category. Buttons of one shape are read as one class of control regardless of where they appear on the screen.
Size
Shared size groups elements and also establishes hierarchy. Items of equal size read as peers, while a larger element separates from the group and reads as more important.
Five Product Applications
Similarity is a workhorse of interface design. Each pattern below uses shared visual treatment to group elements into a category, a behaviour, or a status that the user can read at a glance.
Consistent Styling for Same-Behaviour Elements
When every clickable button shares the same shape, colour, and weight, a user learns the rule once and applies it everywhere. Buttons that look alike are assumed to behave alike. The visual signature becomes a promise about function, so the user does not have to test each control to know what it does.
Same look, same job. A shared visual signature tells the user how a control behaves before they click it.
Real-world example for Consistent Styling for Same-Behaviour Elements
Mature design systems lean on similarity as their organising rule. A primary action is always the same filled shape in the same accent colour, a secondary action is always the same outlined shape, and a destructive action is always the same red. The user never reads a label to work out which button submits the form and which cancels it, because the styling has already answered the question. Stripe, Material Design, and Apple's Human Interface Guidelines all codify this. A control that looks like every other primary button is treated as a primary button, and the moment a control breaks that visual pattern the user pauses, because the similarity rule has been violated and the promise of predictable behaviour is withdrawn.
Why it works
Grouping by similarity is one of the perceptual factors Wertheimer (1923) described as the tendency of like parts to band together. Elements that resemble each other are perceived as belonging to the same category, so a shared visual treatment reads as a shared function. The inference happens at the level of perception, before any conscious reasoning about what the control might do.
Watch for
Similarity cuts both ways. If two controls look alike but behave differently, the user carries the wrong expectation into the click and the mistake feels like the product's fault. A "Download" button styled identically to a "Delete" button invites exactly the error the styling promised to prevent. Reserve a visual signature for one behaviour, and never reuse it for a control that does something else.
Signalling Same-Category Items Through Shared Styling
A product catalogue, a settings screen, or a dashboard often mixes several kinds of item on one page. Giving each kind a consistent visual treatment lets the user sort the page into categories at a glance, without headers or dividers doing all the work. Cards that share a style are read as the same class of thing.
Shared styling groups items into a category faster than any label can.
Real-world example for Signalling Same-Category Items Through Shared Styling
An online store that renders every product as an identical card, with the image, title, price, and rating in the same position and the same type, lets a shopper scan a grid of fifty items as a single coherent category rather than fifty separate objects. The similarity does the grouping. When the same store wants to mark a subset as "sponsored" or "on sale", it changes one visual attribute, a badge colour or a border, and that difference is enough to split the subset out of the group while the rest remains unified. Notion applies the same logic to database views, where rows of one type share a style and stand apart from rows of another. The user reads structure from resemblance, not from explicit labelling.
Why it works
The principle of similarity states that stimuli which physically resemble each other are perceived as part of the same object or set. Shared colour, shape, and size act as a grouping cue that operates independently of spatial position, so items scattered across a grid still read as one category as long as they look alike.
Watch for
Over-styling defeats the grouping. If every card carries its own accent colour, decorative border, or bespoke layout, the similarity signal is lost and the page reads as noise. Similarity works because most elements share a treatment and only the meaningful exceptions differ. When everything is an exception, nothing groups.
Colour and Shape Coding for Status and Type
Assigning a fixed colour or shape to a status, a data type, or a label lets the user decode meaning across a whole interface at a glance. Green always means healthy, red always means failing, and a particular tag colour always means the same project. The coding turns a scattered set of elements into a readable map.
One colour, one meaning, applied everywhere. The user reads status without reading text.
Real-world example for Colour and Shape Coding for Status and Type
Monitoring dashboards such as Datadog and Grafana rely on colour coding as a similarity cue. Every healthy service is the same green, every degraded one the same amber, every failing one the same red, and a user scanning a wall of tiles groups the failures together by colour before reading a single service name. Calendar apps use the same mechanism for event categories, and project tools such as Linear and Jira use tag colours so that all tickets of one type are perceived as a set. The coding only works because it is consistent. The moment green means "healthy" in one place and "selected" in another, the similarity cue stops carrying reliable meaning and the user has to fall back on reading labels.
Why it works
Colour is one of the strongest similarity dimensions Nielsen Norman Group documents in visual design. Elements sharing a colour are perceived as related and as sharing a function or meaning, which is why consistent colour coding lets a user decode status across an entire screen through perception alone.
Watch for
Colour coding fails for the roughly one in twelve men with a colour vision deficiency if colour is the only cue. Pair each coded colour with a shape, an icon, or a label so the grouping survives when the colour does not read. A red-green status system with no secondary signal is invisible to a large share of users.
Uniform Link and Action Affordances
When every link in a body of text shares one treatment, and that treatment is used for nothing else, the user learns to recognise "clickable" at a glance. Consistent affordance styling means a person can spot every actionable element on a page without hovering over each one to test it.
If it looks like a link, it is a link. Consistency makes clickability visible.
Real-world example for Uniform Link and Action Affordances
The oldest convention on the web is that links share a distinct, consistent style, historically underlined and coloured, so that a reader can find every actionable word in a paragraph without moving the cursor. The convention works because it is a similarity rule. All links look alike, and nothing that is not a link borrows that look. Wikipedia holds to this strictly, and the payoff is that a dense article remains navigable because every clickable term is instantly recognisable. Problems appear when a product styles non-link text in the same colour as its links, or styles its links to look like ordinary text. Both break the similarity rule, and both leave the user hunting for what they can act on.
Why it works
A uniform affordance is similarity applied to interaction. Elements that share a visual treatment are grouped as one class, so a consistent link style groups every link into a single recognisable set. The Law of Similarity in interface design holds that visual sameness in colour, shape, or size signals that elements belong together and share a common function.
Watch for
Styling plain text to resemble a link, or a link to resemble plain text, misleads through the same mechanism that helps. The user clicks what looks actionable and finds it inert, or overlooks what is actionable because it looks like prose. Keep the link treatment exclusive to links.
Grouping Related Fields by Visual Resemblance
A long form becomes legible when related inputs share a visual treatment that sets them apart from unrelated ones. Fields that look alike are read as belonging to the same step or the same topic, which lets a user parse the structure of a form before filling any of it in.
Fields that look alike read as one step. Resemblance carries the structure of the form.
Real-world example for Grouping Related Fields by Visual Resemblance
A checkout flow that gives all shipping fields one consistent style and all payment fields another lets the user perceive two distinct sections without needing a heavy divider between them. The resemblance within each set does the grouping, and the difference between the sets marks the boundary. Stripe Checkout and well-built account settings screens use this to keep long forms from reading as an undifferentiated wall of inputs. Similarity here often works alongside proximity, since related fields tend to sit close together as well as share a style, and the two cues reinforce each other. The user reads the shape of the task from how the fields cluster and resemble one another.
Why it works
Grouping by resemblance lets a user infer structure without explicit labelling. Wertheimer (1923) showed that like elements band together in perception, so inputs sharing a treatment are read as one group. The perceived structure emerges from the visual resemblance rather than from any heading the designer adds on top.
Watch for
Similarity and proximity can pull against each other. If two unrelated fields sit close together but a related field is styled differently and placed far away, the cues conflict and the grouping becomes ambiguous. Align the visual treatment with the spacing so both cues point at the same structure.
Grouping vs. Distinction
Similarity has a mirror image. The same rule that groups like elements also separates unlike ones, so a designer uses resemblance to unify and difference to divide. The two work as a pair. A screen becomes legible when most elements share a treatment and only the meaningful exceptions break from it. The skill is knowing which attribute to hold constant so items group, and which to vary so the important exception stands out.
Resemblance that groups
- —Same-behaviour controls share one visual signature
- —Items of a category share a card style and layout
- —A status colour means the same thing everywhere
- —Links share one treatment used for nothing else
- —The user reads structure without reading labels
Difference that divides
- —A single changed attribute pulls an item out of a group
- —The primary action differs from the secondary on purpose
- —A sponsored or on-sale item breaks the catalogue pattern
- —A destructive control looks unlike every safe one
- —The exception is visible precisely because the rest match
Empirical Validation
Well validatedSimilarity is one of the best established of the Gestalt grouping principles. Wertheimer's 1923 work named it as a factor of perceptual organisation, and it has been reproduced in perception laboratories for a century since. It sits in the standard set of grouping principles that appear in every perception textbook, and its effect on how a viewer parses a display is easy to demonstrate and robust across observers.
The honest caveat is that similarity is a descriptive perceptual principle rather than a precise quantitative law. It reliably predicts that like elements will group, and modern vision science using metrics such as the Gestalt grouping literature has quantified grouping strength in controlled settings. It does not, on its own, give a designer an exact threshold for how different two colours must be before a group breaks. In a real interface similarity also competes with proximity, common region, and other cues, so the outcome depends on how the signals combine. The principle is dependable as a direction, and it needs judgement in application.
Go deeper into the evidenceFoundational Gestalt work, the grouping principles, and boundary conditions.Read the researchKey Takeaway
The Law of Similarity is the perception of resemblance. The eye groups elements that look alike into a single set, and it does so before conscious thought begins. For a product team this is the cheapest legibility tool available. Give same-behaviour controls one look, give a category one treatment, and give a status one colour, and the user reads the structure of the screen without reading a word. The discipline is restraint. Similarity only groups when most elements match and the exceptions are deliberate. When everything is styled differently, the grouping collapses and the screen reads as noise.
Read next
Keep exploring related principles in Product Psychology.