How to choose a color scheme for your website
Updated:
Most color schemes fail not because the colors are ugly, but because nobody decided what each color is for. Start from roles, then pick colors to fill them.
1. Decide the roles first
A typical website needs five color roles. Picking colors for roles keeps the page consistent and makes later changes easy.
- Background — the page and card surfaces. Usually near-white or near-black.
- Text — body text and headings, with a softer shade for secondary text.
- Primary — the main buttons and links. This is the color people should click.
- Secondary — supporting surfaces, tags, and less important buttons.
- Accent — small highlights such as badges or notices. Use sparingly.
2. Keep a 60-30-10 balance
A common rule of thumb: about 60% of the screen in the background color, 30% in secondary or neutral tones, and 10% in the primary and accent colors. When the primary color appears everywhere, nothing stands out, including your call-to-action button.
3. Pick a primary color that fits what the site is
The primary color should match the site's identity. A brand that already has a logo color usually keeps it. Without one, think about the kind of service and its audience: calm, trustworthy services often lean on blues and greens, while food, kids, and lifestyle brands tend toward warmer colors. These are tendencies, not rules — what matters is that the color fits the content around it.
4. Build the neutrals
Grays do most of the work on a page: text, borders, dividers, and card backgrounds. Slightly tinting your grays toward the primary color makes a scheme feel unified. Keep three to five gray steps instead of dozens of near-identical ones.
5. Check contrast before you ship
Body text needs a contrast ratio of at least 4.5:1 against its background, and large text at least 3:1. Light gray text and white text on bright buttons are the most common failures. See our contrast guide for details.
6. Test on the real page, not on swatches
Five swatches side by side tell you little about how a site will feel. Colors interact with images, layout, and amounts of text. TonePatch applies palettes to your actual page, so you can compare schemes in context before touching any code.