Home / Blog

Blog · Tutorial

Color Palette Tutorial: Build a Simple Three-Color Website Palette

Build a three-color website palette with clear roles for background, text, and actions. Includes a worked hex example and contrast checks for real page components.

PublishedJuly 21, 2026
Reading time3 min
AuthorKathleen
Filed underBlog
Three-color palette applied to a simple website layout Color Palette Tutorial: Build a Simple Three-Color Website Palette — July 21, 2026
Quick answer: Build a simple website palette from three core colors: a page background, a readable text color, and an action color. Apply them to a real paragraph, link, and button before judging the swatches. Treat warning and success colors as separate functional needs; a three-color rule should not hide important messages.

Three colors are enough to establish a visual direction for many small sites. The challenge is assigning them useful roles. A palette board can make a pale blue look beautiful while the same blue is unreadable as a link on white. Build the page sample first.

Start with a working example

This example uses white (#FFFFFF) for the background, near-black (#111827) for text, and blue (#1D4ED8) for links and primary actions. Using the WCAG contrast formula, the near-black/white pair is about 17.74:1 and the blue/white pair about 6.70:1. Both exceed the 4.5:1 Level AA minimum for normal text. Those figures apply to these exact hex pairs, not to every shade of blue or every overlay.

RoleExampleUse
Background#FFFFFFMain reading surface and button text
Text#111827Paragraphs, headings, and labels
Action#1D4ED8Links and primary button fill

Apply the colors to actual components

  • Paragraph: Use the text color on the page background. Read a full paragraph, not a single specimen line.
  • Link: Use the action color on white and give links a non-color cue such as an underline in body copy.
  • Button: Put white text on the action color. Check the label, border, hover, and keyboard focus state in the live theme.
  • Card: Start with the same background and use spacing or a border to separate it. Add a tint only if it has a job.

Do not turn “three colors” into a ban on required states. Errors, warnings, success messages, and disabled controls may need their own colors and text labels. Their meaning should remain clear to people who cannot distinguish the hues.

Adapt the palette without losing the roles

If your brand has a yellow accent that fails as a text link on white, keep it for a larger surface or illustration and choose a darker action color for text. If you use a photograph behind a heading, measure the text against the part of the image it actually covers or add a stable overlay. The color pair that passed on a plain background does not automatically pass over a photo.

In WordPress, set the approved colors in the theme’s global styles when that feature is available, then preview a long article and the homepage. Check both desktop and phone widths. The palette is finished when its roles still make sense across the site’s real content, not when its swatches look harmonious.

Written by

Kathleen

Designer, writer, and practitioner building digital experiences for two decades. Based in Prague.

Leave a response