Back to Generator

UI/UX Color Palette Guide

Create professional color systems for digital interfaces

20 sections~20 min read12 interactive demos

1. Introduction: Color in UI/UX

Color is one of the most powerful tools in interface design. A well-designed palette improves usability, communicates brand personality, and guides users toward desired actions.

1.1 Why is Color Crucial in UI/UX?

  • Visual hierarchy: Directs user attention.
  • Feedback: Communicates states (success, error, warning).
  • Identity: Reinforces brand recognition.
  • Emotion: Creates feelings and connections.
  • Accessibility: Ensures everyone can use your product.

💡 Key Fact

Users form an opinion about an interface in 50 milliseconds, and color is the most influential factor.

1.2 What You'll Learn

  1. Anatomy of a complete UI palette
  2. The 60-30-10 system applied to interfaces
  3. Semantic colors and states
  4. Dark mode and themes
  5. Accessibility and contrast
  6. Case studies of successful apps

2. Anatomy of a UI PaletteInteractive

A professional UI palette is a structured system with specific roles for each color.

2.1 The 5 Essential Components

1. Primary Color

Your brand's main color. Used in CTAs, links, highlighted elements.

2. Secondary Color

Complements the primary. Used in secondary elements, badges, icons.

3. Accent Color

To highlight specific elements. Used sparingly.

4. Neutrals

Gray scale for backgrounds, text, borders. Typically 9-11 shades.

5. Semantic

Colors with meaning: success (green), error (red), warning (yellow), info (blue).

2.2 Color Scales

Each color needs a scale of 9-11 shades (50-900) for different uses: subtle backgrounds, borders, hover states, text, etc.

Color Scale Generator

#3B82F6
50#f5f7f9
100#eaeef5
200#cbd7ec
300#98b4e1
400#608fdc
500#3B82F6
600#808183
700#6a6a6c
800#535455
900#3c3d3e

3. The 60-30-10 RuleInteractive

The 60-30-10 rule ensures visual balance and clear hierarchy.

60% Neutrals
30% Primary
10%
60%

Dominant

Backgrounds, white space, containers.

30%

Secondary

Headers, sidebars, featured cards.

10%

Accent

CTAs, links, active icons.

⚠️ Common Mistake

Using too much accent color. If everything stands out, nothing stands out.

60-30-10 Rule Visualizer

#F3F4F6
#3B82F6
#F59E0B
Header

4. Semantic Colors and StatesInteractive

Semantic colors have universal meanings that users recognize instinctively.

Success

Confirmations, completed, correct validation.

Error

Errors, failures, destructive actions.

!

Warning

Cautions, irreversible actions.

i

Info

Tips, contextual help, neutral information.

4.2 Component States

Every interactive component needs: Default, Hover, Active, Focus, Disabled.

Semantic States Preview

Success Message

This is an example alert message.

Success

5. The Importance of NeutralsInteractive

Neutrals make up 80% of any interface. A well-designed scale makes the difference.

5.1 11-Shade Scale

50 Page backgrounds
200 Borders, dividers
500 Secondary text
800 Headings
950 Dark mode backgrounds

5.2 Warm vs Cool Neutrals

Add a subtle tint to your neutrals to make them more sophisticated. Choose based on your primary color.

Neutral Scale Builder

50
100
200
300
400
500
600
700
800
900
950

Pure grays are neutral and technical. Good for minimalist designs.

6. Dark Mode DesignInteractive

82% of users prefer dark mode. But designing it well is complex.

6.1 It's Not Just Inverting Colors

❌ Wrong

  • • Saturated colors that "burn"
  • • Excessive contrast
  • • Shadows that don't work

✅ Right

  • • Desaturated colors
  • • Reduced contrast (87%)
  • • Elevation with luminosity

6.2 Key Principles

  • Avoid #000000: Use #121212 or similar
  • Reduce saturation: 10-20% less on bright colors
  • Text: Use #E0E0E0, not pure white
  • Elevation: Lighter backgrounds, not shadows

Dark Mode Preview

Card Title

This is secondary text that should have reduced contrast in dark mode.

Background
#FFFFFF
Text
#111827
Primary
#3B82F6

7. Accessibility and ContrastInteractive

Accessibility is not optional. It's a legal requirement in many countries and improves UX for everyone.

7.1 WCAG: The Standards

AA (Minimum)

  • 4.5:1 - Normal text
  • 3:1 - Large text (≥18px bold)
  • 3:1 - UI components

AAA (Optimal)

  • 7:1 - Normal text
  • 4.5:1 - Large text

7.2 Color Blindness

8% of men have some form of color blindness. Solutions:

  • Use blue + orange instead of red + green
  • Add icons to states (✓ for success, ✕ for error)
  • Don't rely solely on color to communicate information

Contrast Checker

Sample Text
3.68:1
AA Normal Text (4.5:1)✕ Fail
AA Large Text (3:1)✓ Pass
AAA Normal Text (7:1)✕ Fail

8. Case Studies: Successful Apps

Let's analyze the palettes of successful apps and what we can learn.

8.1 Spotify

🎵

Spotify

Lesson: Single accent color on dark background. Content provides the color.

8.2 Airbnb

🏠

Airbnb

Lesson: Warm colors that convey hospitality. Photos are the protagonist.

8.3 Stripe

S

Stripe

Lesson: Sophisticated gradients that convey technology and trust.

9. Creating Your Palette Step by StepInteractive

Let's create a complete UI palette from scratch.

Step 1: Define Your Primary Color

Should reflect your brand, be distinctive, and work in light/dark mode.

Step 2: Generate the Scale

From your base color (500), generate 10 variations (50-900).

Step 3: Choose Neutrals

Add a subtle tint of your primary to your neutrals.

Step 4: Define Semantics

  • Success: Green (#10B981)
  • Error: Red (#EF4444)
  • Warning: Yellow (#F59E0B)
  • Info: Blue (#3B82F6)

Step 5: Dark Mode Version

Invert neutrals, lighten primary, desaturate bright colors.

Step 6: Document

Use semantic names (--color-primary, not --blue-500).

Quick Palette Builder

#6366F1

primary

#6366F1

primary Light

#ebebf5

primary Dark

#0a0ee4

secondary

#a871e3

accent

#f1ee63

success

#10B981

error

#EF4444

warning

#F59E0B

10. Implementation with CSS VariablesInteractive

CSS Custom Properties are the modern way to implement color systems.

10.1 Recommended Structure

:root {
  /* Primary */
  --color-primary: #3B82F6;
  --color-primary-hover: #2563EB;
  
  /* Neutrals */
  --color-background: #FFFFFF;
  --color-surface: #F9FAFB;
  --color-text: #111827;
  
  /* States */
  --color-success: #10B981;
  --color-error: #EF4444;
}

[data-theme="dark"] {
  --color-primary: #60A5FA;
  --color-background: #111827;
  --color-text: #F9FAFB;
}

✅ Advantages

  • • Runtime theme switching
  • • Single place to update
  • • Support in all modern browsers

Export Palette

:root {
  --color-primary: #3B82F6;
  --color-primary-hover: #2563EB;
  --color-secondary: #8B5CF6;
  --color-background: #FFFFFF;
  --color-surface: #F9FAFB;
  --color-text: #111827;
  --color-text-secondary: #6B7280;
  --color-success: #10B981;
  --color-error: #EF4444;
  --color-warning: #F59E0B;
}

11. Tools and Resources

11.1 Our Tools

11.2 Reference Design Systems

  • Material Design 3: Google's system with color tokens
  • Tailwind CSS: Well-thought-out predefined palette
  • Radix Colors: Accessible and consistent scales
  • Apple Human Interface: iOS/macOS guide

12. Conclusion and Checklist

A well-designed UI palette is the foundation of any successful digital product.

UI Designer's Checklist

  • ☑️ I have a distinctive and memorable primary color
  • ☑️ My palette has complete scales (50-900)
  • ☑️ I follow the 60-30-10 rule
  • ☑️ I have defined semantic colors
  • ☑️ All my contrasts meet WCAG AA
  • ☑️ I have light and dark mode versions
  • ☑️ My palette is documented with CSS variables

Ready to create your palette?

Use our generator to get started.

Go to Generator →

13. Quiz: What Type of Palette Do You Need?Interactive

Before you start designing, it's important to understand what type of palette best fits your project.

Answer these 4 questions and we'll recommend a palette style based on your product type, audience, and goals.

💡 Why Does Palette Type Matter?

A meditation app shouldn't use the same colors as a gaming app. Context and audience determine which colors will work best.

Question 1/40%

What type of product are you designing?

14. Successful App AnalysisInteractive

Studying the palettes of successful apps is one of the best ways to learn color design.

Explore the palettes of Notion, Slack, Discord, Linear, Figma, and Stripe. Each has a unique approach you can apply to your projects.

14.1 What to Learn From Each App?

🎯 Productivity (Notion, Linear)

Extreme minimalism. Content is the star. Neutral colors with a single accent.

💬 Communication (Slack, Discord)

Multiple colors with meaning. Each color communicates a specific state or action.

🎨 Creativity (Figma)

Vibrant colors for each product. The canvas is neutral to not interfere with work.

💳 Fintech (Stripe)

Sophisticated gradients that convey innovation and trust. Premium without being boring.

⚠️ Don't Copy, Get Inspired

Study the principles behind each palette, don't copy the exact colors. Your brand needs its own identity.

🔍 App Palette Explorer

Notion
Productivity
PrimaryText, icons
BackgroundMain background
TextBody text
AccentLinks, highlights
ErrorDestructive actions
💡 Key Lessons:
  • Minimal color = maximum focus
  • Black & white creates elegance
  • Content provides the color

15. Practical ExercisesInteractive

The best way to learn is by practicing. These exercises will help you apply everything you've learned.

15.1 How to Use the Exercises

  1. Read the project brief carefully
  2. Consider the audience and context
  3. Select your colors using the pickers
  4. Observe the real-time preview
  5. Click "Get Feedback" to see suggestions

15.2 Evaluation Criteria

  • Contrast: Is the text readable? (minimum 4.5:1)
  • Coherence: Do the colors work together?
  • Context: Are they appropriate for the app type?
  • Differentiation: Are primary and secondary distinguishable?

✅ Pro Tip

Try each exercise multiple times with different approaches. There's no single correct answer.

🎯 Practical Exercise

Fitness App

Design a palette for a fitness tracking app targeting young adults (18-35). The app should feel energetic and motivating.

💡 Consider orange, green, or vibrant blue

💡 Dark mode is popular in fitness apps

💡 Use high contrast for readability during workouts

#3B82F6
#10B981
#F59E0B
#FFFFFF
#1F2937
Fitness App

This is how your palette looks in a real interface.

16. Advanced Design Tokens

Design tokens are the modern way to manage design systems at scale.

16.1 What Are Design Tokens?

They are variables that store design decisions: colors, spacing, typography, etc. They allow maintaining consistency between design and code.

Color Token Structure

{
  "color": {
    "primitive": {
      "blue": {
        "50": { "value": "#EFF6FF" },
        "500": { "value": "#3B82F6" },
        "900": { "value": "#1E3A8A" }
      }
    },
    "semantic": {
      "primary": { "value": "{color.primitive.blue.500}" },
      "background": { "value": "{color.primitive.gray.50}" },
      "text": { "value": "{color.primitive.gray.900}" }
    },
    "component": {
      "button": {
        "primary": {
          "background": { "value": "{color.semantic.primary}" },
          "text": { "value": "#FFFFFF" }
        }
      }
    }
  }
}

16.2 Token Levels

1. Primitives

Raw values: #3B82F6, 16px, 400. No semantic context.

2. Semantic

With meaning: color-primary, spacing-md, font-body. Reference primitives.

3. Component

Specific: button-primary-bg, card-border. Reference semantic tokens.

16.3 Design Token Tools

  • Figma Tokens: Plugin to manage tokens in Figma
  • Style Dictionary: Transforms tokens to multiple platforms
  • Tokens Studio: Syncs tokens between Figma and code

17. Figma Integration

Figma is the most popular design tool. Here's how to export your palette to Figma.

17.1 Export Methods

📋 Manual

  1. Copy the HEX codes
  2. Create color styles in Figma
  3. Name with convention (primary/500)

🔌 With Plugin

  1. Export as JSON from our generator
  2. Use "Figma Tokens" plugin
  3. Import the JSON directly

17.2 Figma Style Structure

📁 Colors
  📁 Primary
    • primary/50
    • primary/100
    • primary/500 (base)
    • primary/900
  📁 Neutral
    • neutral/50
    • neutral/900
  📁 Semantic
    • success
    • error
    • warning

💡 Pro Tip

Use the "category/name" format so Figma automatically groups your styles.

18. Common Mistakes and How to Avoid Them

Even experienced designers make these mistakes. Learn to identify and avoid them.

1. Too Many Colors

Using 10+ colors without a system. Creates visual confusion.

Solution: Limit to 1 primary + 1 secondary + neutrals + semantics.

2. Ignoring Accessibility

Light gray text on white background. Unreadable for many users.

Solution: Verify 4.5:1 minimum contrast for text.

3. Pure Black in Dark Mode

Using #000000 as background. Creates excessive contrast and eye strain.

Solution: Use #121212 or #1A1A1A. Add elevation with lightness.

4. Colors Without Scale

Only having one shade of each color. Limits design options.

Solution: Generate 9-11 tone scales (50-900) for each color.

5. Relying Only on Color

Using only red/green for success/error. Inaccessible for colorblind users.

Solution: Add icons, text, or patterns as reinforcement.

19. Interactive ChecklistInteractive

Use this checklist to verify your palette is complete before implementing it.

Check each item as you complete it. The checklist saves your progress as you navigate the guide.

💡 How to Use the Checklist

  • • Click each item to mark it as complete
  • • The progress bar shows your advancement
  • • Try to reach 100% before implementing

✅ UI Palette Checklist

0%
Color Foundation
Color Scales
Accessibility
Dark Mode
Implementation

20. Final Conclusion

What You've Learned

✓ Fundamentals

  • • UI palette anatomy
  • • 60-30-10 rule
  • • Semantic colors

✓ Techniques

  • • Color scales
  • • Dark mode
  • • CSS Variables

✓ Accessibility

  • • WCAG contrast
  • • Colorblindness
  • • Inclusive design

✓ Practice

  • • Case studies
  • • Practical exercises
  • • Design tokens

Next Steps

  1. Practice: Complete all exercises in this guide
  2. Analyze: Study the palettes of your favorite apps
  3. Create: Design a palette for your next project
  4. Iterate: Test with users and adjust based on feedback

Start Creating!

Apply everything you've learned with our palette generator.

Go to Generator →

Ready to create your palette?

Use our Palette Generator to create professional color systems in seconds.