Start a project
Paint swatches and fabric samples in red, neutral and charcoal tones on linen

Choosing a Website Color Palette That Works for Your Brand

Clients usually arrive with a brand color, sometimes two. A logo in navy and orange, or a single red from a business card printed in 2014. What they rarely have is a website palette: the 30 to 50 specific values a site needs for text, backgrounds, borders, buttons, links, alerts, hover states and charts.

The gap between those two things is where websites start to look off. The brand orange works on a logo but fails contrast as button text. The navy is perfect for headings but too heavy as a section background. Here is how we turn a couple of brand colors into a palette that holds up across a real site.

Key takeaways

  • Separate brand colors (identity) from UI colors (function). They overlap, but they are not the same list.
  • Most of a good website is neutral. Expect 70–90% of the screen to be backgrounds and text.
  • Build a tint scale (50–900) for each core color so you never invent shades on the fly.
  • Check every text and UI pairing against WCAG 2.2 AA: 4.5:1 for body text, 3:1 for large text and UI components.
  • Reserve your accent color for actions. If everything is orange, nothing is clickable.

Brand colors vs. UI colors

We split every palette into four groups before choosing a single hex value:

GroupPurposeTypical count
BrandRecognition. Logo, hero moments, illustrations.1–3 colors
NeutralsText, backgrounds, borders, dividers.8–10 steps of one gray
Accent / actionButtons, links, focus rings, selected states.1 color with 3–4 shades
FeedbackSuccess, warning, error, info.4 colors with 2–3 shades each

Often the main brand color doubles as the action color. That works only if it passes contrast in the places buttons and links live. If it does not, keep the brand color for identity moments and pick a darker shade of it for actions.

Start with the neutrals

This sounds backwards, but it is where most of the visual quality comes from. Pure gray (#808080 and friends) tends to look cold and flat next to warm brand colors. We tint neutrals slightly toward the brand hue: a warm brand gets warm grays with a hint of red or yellow; a cool brand gets slate grays with a hint of blue.

A practical neutral set for a light-theme site:

  • Page background: off-white rather than pure #FFFFFF, for example a very light warm gray. It reduces glare and lets white cards stand out.
  • Surface: white for cards and form fields.
  • Border: a light gray around 1.3:1 to 1.6:1 against the background for decorative dividers. Input borders that identify a control need 3:1.
  • Secondary text: a mid gray that still clears 4.5:1 on both the background and the surface. This is the one people get wrong most often.
  • Primary text: near-black, not pure black. Something around #1A1A1A to #222 reads softer and still exceeds 15:1 on white.

Build tint scales, not single swatches

For every core color, generate a scale of 9 or 10 steps, conventionally numbered 50, 100, 200 through 900. The 500 step is usually close to the original brand color; lighter steps serve backgrounds and badges, darker steps serve text and hover states.

A few rules that make scales usable:

  1. Adjust in a perceptual color space. Simply mixing with white and black produces muddy, gray midtones. Tools that work in OKLCH or similar spaces keep lightness steps even and colors saturated.
  2. Shift hue slightly at the ends. Darker shades often look better nudged a few degrees cooler, lighter shades a few degrees warmer. Small shifts, not a different color.
  3. Note the contrast of each step against white and against your darkest neutral. Write it in the documentation. A designer should know at a glance that “red 600 and up” is safe for text on white.

Example from a recent project with a warm red brand color: red-50 for a subtle highlight background, red-100 for badges, red-500 for the logo and illustrations, red-600 for primary buttons with white text, red-700 for button hover and inline links. Five useful values from one brand color, each with a defined job.

Contrast: check pairs, not colors

A color does not pass or fail contrast on its own. A pair does. Make a simple matrix of every foreground you use against every background you use, and check each cell:

  • Body and small text: at least 4.5:1.
  • Large text (24px regular, or about 18.7px bold and up): at least 3:1.
  • Icons, input borders, focus indicators and other UI parts needed to understand a control: at least 3:1 against adjacent colors.
  • Disabled controls and pure decoration: exempt, but keep disabled states obviously disabled.

Common traps: white text on a bright yellow, orange or light green button (usually fails 4.5:1); placeholder text in light gray; text over photographs without an overlay. For photos, a dark scrim at 40–60% opacity behind the text is a reliable fix.

Also, never use color as the only signal. Error fields need an icon or message, not just a red border. Links in paragraphs need an underline, not just a different hue.

How much of each color to use

The old interior-design rule of 60-30-10 is a reasonable starting point, but on websites the neutral share is usually even higher. A typical marketing page in our projects breaks down roughly like this:

  • 70–85% neutral backgrounds and text
  • 10–25% brand color in larger areas: a hero band, a footer, a feature section
  • 2–5% accent, almost entirely on buttons, links and key highlights

That last number is the important one. When the action color appears only on things you can click, users learn the pattern within seconds. When the same color is also used for decorative icons, headings and borders, the buttons stop standing out. Color supports the visual hierarchy that type and spacing create; we wrote about the type side in how to build a type system for your website.

Feedback colors and dark mode

Success green, warning amber, error red and info blue should be distinct from your brand colors. If your brand is red, your error color needs to be clearly different in shade, or paired with strong icons, so a form error does not look like a branded highlight.

For dark mode, do not invert the palette. Instead:

  • Use dark grays (not pure black) for backgrounds, with lighter surfaces for elevated elements.
  • Desaturate and lighten accent colors. A saturated red that looks great on white will vibrate on near-black.
  • Recheck every contrast pair. Values that pass in light mode often fail in dark mode, and vice versa.
  • Define everything as tokens (color-bg, color-text, color-action) so switching themes is a matter of reassigning values, not rewriting styles.

Finally, document it in one place. The deliverable is a short palette page: each token name, its hex or OKLCH value, its job, and the pairs it is approved for. We include it in every branding handoff, alongside the design tokens developers import directly. When someone wants a “slightly different blue” six months later, the page answers the question before it becomes a new color.

FAQ

How many colors should a website have?

Visible to a visitor, usually one or two brand colors, one accent and a neutral range. In the code, 30 to 50 tokens is normal once you include shades, states and feedback colors.

Can my brand color fail contrast and still be used?

Yes, for logos, illustrations, large decorative areas and anything that is not text or an essential UI element. For text and buttons, use a darker or lighter shade of it that passes.

Does color psychology matter for picking a palette?

Less than people think. Associations vary by culture, industry and context. Distinctiveness from competitors and consistent use matter more than the general meaning of a hue.

If your brand colors look great on the logo but awkward on the website, get in touch. Extending a palette for the web is usually a focused, short project.

Join the discussion

Share your thoughts or ask a question

Your email stays private. Comments are moderated before they appear.

Keep reading

All articles