Similarity, known in gestalt psychology as the law of similarity, is the perceptual principle that elements sharing visual attributes are seen as belonging together. In design fundamentals, it explains why items with the same color, shape, size, orientation or texture read as one group or one category, even when they are scattered across a layout.
The gestalt principle of similarity is one of the strongest tools a designer has for signaling relationships without words. It works alongside proximity, closure and repetition, and it often decides how quickly a viewer understands which elements share a function.
How the gestalt law of similarity works
The law of similarity works because the visual system groups elements automatically before conscious attention arrives. Gestalt psychologists, notably Max Wertheimer in the 1920s, described how a field of dots with alternating colors is seen as rows or columns of matching color rather than as a uniform grid.
This grouping happens in pre-attentive processing, typically within a few hundred milliseconds. Designers therefore cannot switch it off: if two buttons look the same, users will assume they do the same kind of thing, whether or not that is true.
Similarity is relative, not absolute. Two blue squares appear related only in contrast with elements that differ from them; on a page where everything is blue, color carries no grouping information at all. The degree of difference also matters: groups separate cleanly only when the contrast between them is clearly larger than the variation within each group.
Visual attributes that create similarity
Similarity can be built from several visual channels, and they differ in grouping strength. Research on visual search consistently finds color and luminance among the most powerful cues, while subtle differences in shape are weaker unless combined with other attributes.
| Attribute | Relative grouping strength | Typical design use |
|---|---|---|
| Color hue | Very strong | Category coding, link styling, status labels |
| Value or luminance | Very strong | Primary versus secondary actions |
| Size | Strong | Heading levels, card tiers |
| Shape | Moderate | Icon families, chart markers |
| Orientation | Moderate | Rotated labels, directional icons |
| Texture or pattern | Moderate to weak | Map regions, print charts without color |
| Typeface and weight | Moderate | Body text versus labels or code |
Combining two attributes, such as color plus shape, makes groups more robust and supports accessibility. Users with color vision deficiency, roughly 8 percent of men of Northern European descent, may not separate groups that differ only in hue.
Similarity compared with other gestalt principles
Similarity rarely acts alone, and understanding how it interacts with neighboring principles prevents conflicting signals. The most important relationship is with proximity, because the two often compete in the same layout.
| Principle | Grouping cue | Relation to similarity |
|---|---|---|
| Similarity | Shared visual traits | Groups by appearance |
| Proximity | Spatial closeness | Usually overrides weak similarity cues |
| Common region | Shared container or background | Can bind dissimilar items into one group |
| Closure | Completion of incomplete shapes | Independent, works on contour |
| Repetition | Recurring elements across a design | Applies similarity over time and pages |
When cues conflict, proximity and common region generally dominate. A red button placed inside a group of blue links will still be read as part of that group spatially, yet its color marks it as an anomaly within the group, which is exactly how emphasis and focal points are created.
Applying similarity in interface and graphic design
The practical rule is simple: make things that behave alike look alike, and make things that behave differently look different. Design systems encode this rule as reusable components, so every primary button, every link and every warning shares a consistent visual signature.
| Situation | Recommended approach | Reason |
|---|---|---|
| Navigation links | Same color, weight and underline style | Users learn one cue for clickability |
| Data visualization series | One hue or marker per series | Readers trace a series across the chart |
| Form fields | Identical borders and label styles | Signals that all fields accept input |
| Status indicators | Color plus icon shape | Remains legible without color perception |
| Call to action | Break similarity deliberately | Contrast draws the eye to one action |
Similarity also supports visual hierarchy. When all second-level headings share size, weight and spacing, readers infer equal rank among the sections they introduce and can scan a long page efficiently.
Misuse and common mistakes
Most problems arise when similarity suggests relationships that do not exist or hides ones that do. Because grouping is automatic, misleading similarity produces errors that users cannot easily correct.
- Styling non-interactive text like links, which leads users to click elements that do nothing.
- Giving destructive and safe actions the same style, which increases the risk of accidental deletion.
- Relying on hue alone to separate categories, which fails for color-blind users and in grayscale printing.
- Using too many distinct styles, so that variety erodes the grouping signal and the design feels chaotic.
- Inconsistent components across pages, which forces users to relearn meanings that should stay stable.
A useful diagnostic is the squint test: blurring a layout, or viewing it in grayscale at reduced size, reveals which elements the eye groups together before reading begins. If the perceived groups do not match the intended functional groups, the design is sending conflicting similarity signals. Teams can also audit a design system by listing every distinct button, link and label style; a long list usually indicates that similar functions have drifted apart visually and should be consolidated into fewer, clearly defined variants.
A plain-language summary
Similarity means that our eyes automatically treat look-alike things as a team. If several items share the same color or shape, we assume they belong together or do the same job, without anyone telling us.
Think of sports fans in a stadium: everyone wearing the same jersey color is instantly seen as one side. Designers use this habit to show which buttons, links or labels are related, so matching looks should always mean matching roles.
An example from practice
A design team redesigning a banking app finds that customers often tap a gray label reading “Pending” because it looks identical to the gray secondary buttons nearby. Usability sessions show that about one in five participants expect the label to open transaction details.
The team applies the law of similarity deliberately. All tappable elements receive the same blue text and a consistent icon, while status labels move to a pill shape with a pale background and a small status icon. Destructive actions such as “Cancel transfer” get a distinct red outline so they never resemble routine buttons.
In the next round of testing, mistaken taps on status labels nearly disappear, and participants locate the correct action faster. The change required no new features, only consistent visual grouping that matched each element’s real function.