Skip to content
Design Fundamentals

What Is Visual Hierarchy and How Do You Build It?

Size, contrast, space and order

Updated: 6 min read

Start reading

In short: Visual hierarchy is arranging the elements of a design so that the eye grasps their order of importance right away. That way users know what to look at first and what next without having to think. You build hierarchy with size, color and contrast, font weight, space, grouping and position. But before you start, put the content in order of importance. If you try to emphasize everything, nothing stands out.

The short version

In the first few seconds, someone looking at a page wants answers to three questions: What is this? What’s in it for me? What should I do? Visual hierarchy is the way to bring those answers forward in the right order. In this post I explain the tools that build hierarchy, how to use them together and how to test your design.

What is visual hierarchy?

Nielsen Norman Group defines visual hierarchy as arranging elements in a way that shows their order of importance. According to NN/g, this order is built mainly with color and contrast, scale and grouping (NN/g). When the visual hierarchy is right, users understand the page easily and complete what they came to do. When it’s wrong, the most important information gets missed, or the eye wanders around the page without direction.

Visual hierarchy before and after: two cards with the same content; on the left all text is the same size, on the right the heading is large, the subheading is colored and the button stands out
The content is the same; the only things that change are the size, color and weight of the elements and the space between them.

The words in the two cards above are exactly the same. On the left, every line has equal weight, so the reader doesn’t know where to start. On the right, the eye goes first to the heading, then to the colored subheading and then to the button. The description is still there for anyone who needs it.

How do you build visual hierarchy?

1. Rank the content first

Before opening your design program, write every element on the page in a list and rank it by importance. Only one thing should be in first place. The answer “they’re all important” means there’s no hierarchy. This step is more a content decision than a design decision, so you need to do it together with the client.

2. Size

The strongest tool is size: the eye goes to the biggest thing first. There should be a clear difference between headings and body text. An 18-pixel heading next to 16-pixel text, for example, doesn’t create hierarchy. Also, use a typographic scale instead of picking sizes at random. I explained one way to do this in my post on the golden ratio, and choosing font sizes in my post on choosing fonts.

3. Color and contrast

Whatever differs from its surroundings catches the eye. For example, a single brightly colored button on a calm page draws the eye to it. That’s why you should use your accent color sparingly; an accent color spread everywhere stops being an accent. NN/g also gives an important warning: don’t build hierarchy with color alone, because users with color blindness can’t see some color differences. In short, back up color with size and weight. I explained how to measure contrast in my post on color contrast.

4. Font weight and style

Of two texts of the same size, the eye reads the bold one first. So if you use bold, semibold and regular weights deliberately, you can build hierarchy without changing size. Use styles such as all caps, italics and underlining sparingly, because on the web readers assume underlined text is a link.

5. Space and grouping

The more space around an element, the more important it looks. Grouping shows which elements belong together. For example, a heading, its description and its button sit close to each other, with wider space between them and other groups. This is the Gestalt principle of proximity. You can also group with borders or background colors, but most of the time space alone is enough.

6. Position

In cultures that read left to right, the eye usually starts at the top left. Users also look at the top of a page more than further down. So placing important information near the top and the left supports the hierarchy. I explained the eye’s path across a page in detail in my post on the F-pattern and Z-pattern.

Using visual hierarchy tools together

Visual hierarchy doesn’t come from a single tool; it comes from tools working together. But turning them all up to the maximum at once backfires. A heading that’s big, bold, colored and in all caps shouts. Two tools are usually enough. Here’s a practical rule:

LevelExample elementTypical tools
1. PrimaryPage title, main messageLargest size, bold weight, generous space around it
2. SecondarySubheadings, key information (price, date, duration)Medium size, accent color or semibold
3. TertiaryBody text, descriptionsRegular size and weight, high readability
ActionMain buttonAccent color, distinct shape; one main button per page

Common mistakes

  • Emphasizing everything: Three different red buttons, two large headings and paragraphs full of bold text. Since they all pull at the eye at once, the eye goes to none of them.
  • Size differences that are too small: A 2–4 pixel difference between heading and text looks like indecision, not hierarchy.
  • Equal spacing: If the space above and below a heading is the same, the reader can’t tell which paragraph the heading belongs to.
  • Decorative elements taking over: A large background image or ornament sometimes draws more attention than the heading. When that happens, the hierarchy has been turned upside down.
  • Forgetting mobile: Elements that sit side by side on desktop stack on mobile. So check that the order of importance still holds on mobile.

Three tests for visual hierarchy

  1. Squint test: Squint, or blur the design. Once you can no longer read the text, which elements can you still pick out? Those should be your primary elements.
  2. Grayscale test: Convert the design to black and white. If the hierarchy still works, you’re not leaning too heavily on color.
  3. Order test: Show the design to someone and ask where they looked, in order. Does the order they describe match the importance list you wrote in the first step?

NN/g also makes a suggestion: once you’ve built the hierarchy, take a step back. Then test whether your target users read the design the way you intended. If you’re curious about where hierarchy fits in the overall layout, have a look at my post on composition in graphic design.

Frequently asked questions

Are visual hierarchy and typographic hierarchy the same thing?

Typographic hierarchy is the text part of visual hierarchy: the differences in size, weight and spacing between headings, subheadings and body text. Visual hierarchy also covers images, buttons, areas of color and space.

How many levels of visual hierarchy should a page have?

For most pages, three levels and one action element are enough. As the number of levels grows, the differences between them shrink, and the reader can no longer tell them apart.

Does visual hierarchy affect SEO?

Not directly, but indirectly, yes. On the web, build visual hierarchy with the right heading tags such as H1, H2 and H3. That way both search engines and AI tools understand the structure of the page more easily. Instead of just making a piece of text big and bold, use the right heading tag.

This post is based on information current as of November 2026.

Sources

Front-end developer and web designer, Istanbul

Working on web design, e-commerce and brand identity since 2000. At cyhn.net, design, development and content come together at one table.

More posts

All posts