The Effect of Similarity 

Items of the same size, shape, or quality are more likely to be viewed as a group or pattern than dissimilar elements.

The effect of similarity on perception

If we look at the following figure, we see that conflicts can arise when the effects of proximity and similarity interfere with one another or even cancel each other out.

Conflict between similarity and proximity