Tutorial8 min read

How to Choose a Color Palette for Your Brand or Website

Color is one of the most powerful brand signals — but picking colors randomly leads to inconsistency and poor contrast. Learn the principles of color theory, how to build a palette that works, and how to test for accessibility.

Color is processed in the brain before words. Within 90 seconds of seeing something new, people form a judgment — and color accounts for up to 90% of that first impression. Getting your brand colors right is one of the highest-leverage decisions in visual identity. Here's how to approach it systematically.

The Psychology of Color (and Its Limits)

Color psychology is real but overstated. Colors carry cultural associations and emotional connotations — but they're not universal. Blue doesn't mean "trust" everywhere; red doesn't mean "danger" everywhere. What matters more:

  1. Distinctiveness — does your color palette stand out from competitors?
  2. Appropriateness — does it fit the category and audience expectations?
  3. Consistency — is it applied consistently enough to become recognizable?

The most dangerous color advice is rigid rules ("use blue for trust, green for health"). Tesla and IBM both use blue, but they stand for very different things. Your colors gain meaning from consistent association with your brand — not from their inherent psychology.

Understanding Color Theory Basics

Primary relationships

Complementary: Colors opposite on the color wheel. High contrast, energetic. Example: orange + blue, red + green.

Analogous: Colors adjacent on the color wheel. Harmonious, cohesive. Example: blue + teal + green.

Triadic: Three colors evenly spaced. Balanced, versatile. Example: red + yellow + blue.

Split-complementary: One base color + two colors adjacent to its complement. Contrast without tension.

Use DevZone's Color Palette Generator to generate palettes from any starting color, explore complementary and analogous combinations, and check contrast ratios.

Color properties

Hue — the pure color (red, blue, green)
Saturation — intensity (vivid vs muted)
Lightness/Value — how light or dark

A palette isn't just about hue. The relationship between saturation and lightness determines whether your colors feel vibrant, sophisticated, playful, or muted.

Building a Functional Color System

A complete brand palette has more than a single primary color. Here's the structure:

Primary brand color

Your most recognizable color — the one used in your logo, CTAs, and primary interface elements. This should be distinctive in your category and work well at small sizes.

Secondary/accent color

Used to create visual interest, highlight secondary actions, or distinguish different content types. Should harmonize with the primary but contrast enough to be distinct.

Neutral palette

Most of your UI isn't primary-colored. You need a range of grays (or tinted neutrals) for:

  • Background colors (lightest)
  • Surface colors
  • Border and divider colors
  • Secondary text (medium gray)
  • Primary text (darkest)

Tinted neutrals (adding a slight hue bias toward your primary color) feel more cohesive than pure grays.

Semantic colors

Standard in UI design:

  • Success: green (typically)
  • Warning: amber/yellow
  • Error/danger: red
  • Info: blue

These can be modified to harmonize with your primary palette while maintaining their conventional meaning.

Competitor Analysis First

Before selecting colors, research your category:

  1. Screenshot the logos and primary web pages of your top 5–10 competitors.
  2. List the dominant colors: what patterns emerge?
  3. Identify what's oversaturated (everyone uses blue in fintech, green in health).
  4. Find the gap — what color is distinctive yet appropriate?

Being meaningfully different from category conventions signals differentiation. Matching category conventions can signal competence and fit. The right choice depends on your brand positioning.

Accessibility: Non-Negotiable

Color choices that look beautiful on a designer's calibrated monitor can be unreadable for the 8% of men and 0.5% of women with some form of color vision deficiency. More broadly, poor contrast affects readability for everyone in suboptimal lighting.

WCAG (Web Content Accessibility Guidelines) contrast requirements:

  • Normal text: 4.5:1 contrast ratio (body text)
  • Large text (18px+ or 14px+ bold): 3:1 ratio
  • UI components and icons: 3:1 against adjacent colors

Use the DevZone Color Palette tool's built-in contrast checker to verify ratios before committing to combinations.

Tools to test for color blindness: Simulate deuteranopia, protanopia, and tritanopia using browser extensions (Colorblindly for Chrome) or design tools' accessibility features.

A common failure: red and green used to indicate success/error. These are the most common colors confused in color blindness. Always pair color-based cues with icons, text, or other non-color indicators.

Practical Color Palette Examples

Professional services / SaaS (trust, competence):

  • Primary: Deep navy blue #1E3A5F
  • Secondary: Warm amber #F59E0B
  • Neutrals: Cool grays #F8FAFC#1E293B

Health and wellness (calm, natural):

  • Primary: Sage green #6B9E78
  • Secondary: Warm terra cotta #C87553
  • Neutrals: Warm off-whites #FAFAF8#2D2D2D

Creative / consumer brand (energy, fun):

  • Primary: Electric violet #7C3AED
  • Secondary: Lime green #84CC16
  • Neutrals: Light and dark neutrals with slight purple tint

Fintech / financial (precision, security):

  • Primary: Deep teal #0D9488
  • Secondary: Slate blue #475569
  • Neutrals: Cool grays

Testing Your Palette

Before committing, test your palette in context:

  1. Dark mode — how do your colors look inverted?
  2. Print — do they translate to CMYK without shifting dramatically?
  3. Small sizes — does your primary color work as a 16×16px favicon?
  4. On photography — do your colors work as overlays on the types of images you'll use?
  5. Emotion check — show the palette without any other branding to 3–5 people who fit your target audience. What words do they use to describe it?

FAQ

How many colors should a brand palette have?

A complete system typically has 2 core colors (primary + secondary/accent) + 5–10 neutral shades + 4 semantic colors. For application in a product or website, you'll often define 3–5 shades of each core color (light, base, dark) for different contexts.

Should I use the exact same colors on screen and in print?

No — screen uses RGB/hex, print uses CMYK. Pure digital colors often shift dramatically when converted to CMYK. If you need print consistency, define CMYK values for each brand color separately, and test physical proofs before committing.

Can I change my brand colors later?

Yes, but expect a period of confusion during the transition. Major rebrands (like Instagram's gradient logo in 2016) are studied for years. Consistency over time is how colors gain meaning. Change carefully and with clear purpose.

Is it better to use trendy colors or timeless ones?

Depends on your product. Consumer brands targeting younger audiences can benefit from trend-aware color choices. B2B, financial, and institutional brands benefit from timeless palettes that don't date quickly. Mixing a timeless primary with a trend-aware accent is a common hybrid approach.

Try the tools