← Back to the principles list

Contrast in ecommerce

Next principle →

The thing that differs most from its surroundings usually gets seen first.

Put a pale button on a pale page and the eye slides right past it. Whatever is darkest or boldest can get the tap instead, even if that is only a Save for later link.

Contrast principle
Made-up example: the button gets tapped once it is no longer the faintest thing on the screen.

Contrast, sometimes called the contrast principle in design, is the visible difference between one thing and what surrounds it, in brightness, color, size or weight.

It tells shoppers what to look at and what to do next. Give your main button the strongest contrast on the screen and make sure body text is easy to read, including on a phone in daylight.

Contrast example: a pale Add to Bag button on a linen shirt page

On a phone, a shopper looks at a linen shirt for $140. The page is pale and the Add to Bag button is nearly the same pale tone, with a faint label. The dark Save for later link stands out instead, so most shoppers tap that, and a visit brings in $0. The owner changes one thing: the button becomes solid dark ink with a light label. With these made-up numbers, most shoppers now tap Add to Bag, and a visit brings in $140. Make your main button easier to see than anything around it.

How contrast works with other principles: 4 store examples

Contrast gets mixed up with three neighbors because they all rely on differences people can see. These pairs pull them apart and show one rule that helps you judge how much difference is enough. Every store below is made up to show the idea.

Contrast vs the Von Restorff effect

Often confused with: Contrast is the tool, a visible difference in color, size or weight, while the Von Restorff effect is the result: the one item unlike its neighbors gets noticed and remembered.

Illustrative store example: A sunglasses store shows twelve black frames and one bright orange pair. The orange against the black is contrast, and shoppers noticing and remembering that pair is the Von Restorff effect, so put that color on a frame you want them to remember.

Von Restorff effect: how one different item gets remembered →

Contrast vs visual hierarchy

Often confused with: Contrast makes one thing differ from what surrounds it, while visual hierarchy decides the reading order of the whole page and uses contrast as one of its tools.

Illustrative store example: A watch store makes the name, price, strap picker and button all bold and dark, so each one has strong contrast. Shoppers still don't know where to look first, so set an order by making the name largest and the button darkest.

Visual hierarchy: how to decide what gets read first →

Contrast vs juxtaposition

Often confused with: Contrast is how different two things look, while juxtaposition is the act of placing them side by side so the difference can be compared.

Illustrative store example: A paint store shows two near-white shades on separate pages, and shoppers can't tell them apart. Placing the swatches side by side is juxtaposition, and the faint warm-against-cool difference they can then see is contrast.

Juxtaposition: what side-by-side placement shows shoppers →

Contrast and Weber's law

Works with: Weber's law says people notice a change relative to the starting level, so on a bright page a button needs a bigger step in brightness before the eye catches it.

Illustrative store example: A tea store with a cream page darkens its cream button by one faint shade, and the button still melts into the page. Keep going until it stands out from arm's length, because a small step is easy to miss against a bright background.

Weber's law: how big a change must be to get noticed →

Put it into practice

How do I make Add to Bag stand out from my other buttons?

Give it a solid fill in your darkest or boldest color and use that fill for nothing else on the product page. Save for later and Size guide can be an outline or a plain text link. Keep them readable, though. A shopper should be able to tell right away which one buys the product.

Can a page have too much contrast?

Yes. When every badge, price and banner is bold, nothing stands out and the page feels loud. Long blocks of pure black on pure white can also tire some readers, so very dark gray on off-white is a gentle option. Keep “No thanks” links readable too. Hiding a way out in faint text is a trick, and shoppers notice it.

Is the contrast principle about prices too?

That is a different idea with the same name. In sales, the contrast principle says a second thing can seem more different than it really is when you see it right after the first, so a $50 belt can feel cheap after a $400 coat. This page is about visual contrast: what the eye can pick out on the screen. If you use the sales version, show only true prices.

How do I check the contrast on my store?

Put your button and page colors into a free contrast checker. The common web accessibility guideline, WCAG, asks for at least 4.5 to 1 for normal text, including button labels, and 3 to 1 for large text and for a button's edge if that edge is what shows it is a button. Then open the page on your phone outdoors and see if you can still find the button.

How many bright colors should I use on sale badges?

One is usually enough. Pick a single accent color and save it for the one badge type that helps most, such as Sale. When a card carries a red tag, a green tag and a yellow tag, they cancel each other out. Show a Sale or Bestseller badge only when it is true, and remove it when it stops being true.