workflow · 6 min read · 한국어 · Français

Website color palettes: how to choose one, with real examples

Good website color palettes are smaller than people expect: one background, one text colour, one accent, and maybe a second neutral. The palette is chosen for a job (what the site sells, how it should feel, how readable it has to be), not picked from a wheel. Below: how to choose a palette, the 60-30-10 rule for using it, the contrast numbers your text needs to pass, and palettes taken from real templates with hex codes you can copy, plus what each one measures for contrast.

How to choose a website color palette

Start from the content, not the colours.

  1. Decide light or dark first. That one choice sets most of the mood. Photography, music and night-time products often read better on dark. Long reading, food and most services read better on light.
  2. Pick the background and text pair. These two colours cover most of the screen, so they decide readability. Off-white and near-black are softer than pure white and black, and still pass contrast easily.
  3. Pick one accent. This is the colour for buttons, links and the one thing you want noticed. Take it from the subject if you can: the orange of a stage light, the green of a product, the red of a newspaper masthead.
  4. Add a muted neutral for borders, captions and secondary text. Check it for contrast, because this is the colour that usually fails.
  5. Stop. A fifth or sixth colour usually means two accents fighting for attention.

AI tools, if you don't decide, pick the most common answer: often a purple-to-blue gradient on white. We wrote about why in why every AI website looks the same. Giving the tool exact hex codes is the simplest fix. Our Claude prompts for web design post shows what that looks like in a full prompt.

The 60-30-10 rule

The 60-30-10 rule is a rule of thumb borrowed from interior design: about 60% of what you see is the dominant colour, 30% a secondary colour, and 10% the accent.

On a website that usually means:

  • 60%: the page background.
  • 30%: text, cards, the footer, a contrasting section or the hero image.
  • 10%: buttons, links, highlights and small graphic details.

Treat the numbers loosely. What matters is the order: one colour clearly dominates, and the accent stays rare enough that it still means "look here". If your accent is on every heading, every icon and every border, it stops working as an accent.

Contrast and accessibility (WCAG)

Colour choices have a measurable test. The W3C's WCAG guidelines define a contrast ratio between two colours, from 1:1 (identical) to 21:1 (black on white). The thresholds most sites aim for are Level AA:

  • 4.5:1 for normal body text (success criterion 1.4.3).
  • 3:1 for large text, which WCAG defines as at least 18 point, or 14 point bold.
  • 3:1 for the visual parts of buttons, form fields, icons and focus indicators against what's next to them (1.4.11).
  • 7:1 for normal text, and 4.5:1 for large text, if you're aiming for the stricter Level AAA (1.4.6).

Colour also shouldn't be the only way you show something, such as a link only marked by colour or an error only shown in red (1.4.1). Underline links in body text, and pair error colours with an icon or a message.

The colour that fails most often is the light grey used for captions and placeholder text. Check it, and the accent on its background, before anything else.

Website color palettes from real templates

These palettes come from templates we checked on their pages, with the colours listed there. We worked out the contrast ratios with the WCAG formula. They show what each pair would score if you set text in it, not how the template itself uses every colour.

DJ Zak: black and one orange family

DJ Zak (free, with a Figma file) is a site for a DJ and his new LP.

ColourHexRole
Black#000000background
Orange#FF630Faccent
Deep orange#EA4F16second accent
Pale orange#F6AF60highlights

Pale orange on black measures about 11.2:1 and orange about 7.0:1, so both pass AA for body text. The deep orange measures about 5.6:1, which also passes AA. One hue family in three strengths is an easy way to look bold without clashing colours.

easylog: sky blue with a lime accent

easylog (free, with a Figma file) is a hero for a data product: #3085D2 sky blue, #C8E6FF pale sky, #D0F24B lime and #17242B as the dark.

The dark #17242B on the pale sky measures about 12.3:1, and on the lime about 12.5:1. White text on the sky blue measures about 3.9:1: fine for a large headline, not enough for body text. That's a common catch with mid-blue backgrounds.

lucent: almost white, almost black, one blue

lucent (free, with a Figma file), a site for a contact lens brand, uses #FAFAFA and #1F2022 with a #61A6F6 blue and a #A4A4A4 grey.

The main pair measures about 15.6:1. The grey and the blue on the off-white both measure about 2.4:1, which is below even the large-text level. In a palette like this, the blue and grey belong in decoration and imagery. Links and small text need the dark colour, or a deeper blue.

portale: desert warm

portale (free, with a Figma file), a site for a relocation bank card, takes its palette from a sunset desert: #A26A48 clay, #DBBEA9 sand, #99B6D2 dusk blue, #151515 and #FFFFFF.

Sand on #151515 measures about 10.4:1, and dusk blue on it about 8.7:1. White on clay measures about 4.48:1, just under the 4.5:1 AA line for body text, so use it for large type or darken the clay a little.

Elegant and dark color palettes

An elegant palette usually means fewer, quieter colours: warm paper or deep black instead of pure white, and one restrained accent.

  • Newspaper warm: la gazzetta di fiorinda (paid), a trattoria site styled as a daily paper, uses #E6DFD1 paper, #231D15 ink, #AE3824 red and #16120E. Ink on paper measures about 12.6:1. The red on paper measures about 4.7:1, so it can carry text, not only the masthead.
  • Gallery monochrome: emil ostrev (paid), a black-and-white photographer's portfolio, uses #0E0D0C, #ECE8E1, #9A958D and #E8E6E2. The warm off-white on near-black measures about 15.9:1, and the grey about 6.5:1. No accent at all, so the photos supply the colour.
  • Dark and cold: alpha project (free, with a Figma file), a systems studio site in an ice cave, uses #061120 navy-black, #609ACA and #61A6F6 blues and #FFFFFF. White on the navy measures about 18.9:1, and the brighter blue about 7.5:1.

Dark palettes are easier to get right than they look, as long as the text isn't pure white on pure black over large areas. A near-black background with off-white text keeps the contrast high and is gentler to read. See more in the dark and editorial templates, and pair the palette with type using kinetic typography or our guide to the best fonts for websites.

Every one of these templates lists its colours and fonts on its page, and comes with a prompt for Claude, Codex or Cursor that already uses them, plus a Vite + React project. A free account lets you copy prompts from up to three different free templates in any 24 hours, for personal projects. Commercial and client work needs a monthly or yearly plan, and prices depend on the country you pay from (pricing).

Browse dark templates →

FAQ

How many colours should a website have?

Usually three to five: a background, a text colour, one accent, and one or two neutrals for borders and secondary text. More than one strong accent tends to split attention.

What is the best color palette for a website?

The one that fits the content and passes contrast. For most sites that's a light or dark neutral pair with one accent taken from the subject. Check body text against 4.5:1 before you settle on it.

What is the 60-30-10 rule in web design?

A rule of thumb: about 60% dominant colour (usually the background), 30% secondary colour, and 10% accent for buttons, links and highlights.

How do I check if my website colours are accessible?

Measure the contrast ratio of each text and background pair. WCAG AA asks for at least 4.5:1 for body text, 3:1 for large text, and 3:1 for buttons, inputs and icons.