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
- Anatomy of a complete UI palette
- The 60-30-10 system applied to interfaces
- Semantic colors and states
- Dark mode and themes
- Accessibility and contrast
- 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
3. The 60-30-10 RuleInteractive
The 60-30-10 rule ensures visual balance and clear hierarchy.
Dominant
Backgrounds, white space, containers.
Secondary
Headers, sidebars, featured cards.
Accent
CTAs, links, active icons.
⚠️ Common Mistake
Using too much accent color. If everything stands out, nothing stands out.
60-30-10 Rule Visualizer
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.
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.
5. The Importance of NeutralsInteractive
Neutrals make up 80% of any interface. A well-designed scale makes the difference.
5.1 11-Shade Scale
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
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.
#FFFFFF
#111827
#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
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
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
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
🎨 Palette Generator
Create harmonic palettes. Export to CSS, SCSS, JSON.
♿ Accessibility Checker
Check WCAG contrasts and simulate color blindness.
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
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.
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
💡 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
- Read the project brief carefully
- Consider the audience and context
- Select your colors using the pickers
- Observe the real-time preview
- 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
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
- Copy the HEX codes
- Create color styles in Figma
- Name with convention (primary/500)
🔌 With Plugin
- Export as JSON from our generator
- Use "Figma Tokens" plugin
- 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
- Practice: Complete all exercises in this guide
- Analyze: Study the palettes of your favorite apps
- Create: Design a palette for your next project
- Iterate: Test with users and adjust based on feedback
Ready to create your palette?
Use our Palette Generator to create professional color systems in seconds.