GETTING STARTED
Introduction & intentionsUI design principlesPILLARS OF VISUAL DESIGN
TypographyLayout & spacingColorsReflection & UI challengeDIVE DEEPER
Finishing touchesDeveloping tasteTools & resourcesGET INSPIRED
InspirationPodcast, newsletter & blogsPeople to followNEXT & MORE
What’s next1:1 mentoringSupport meColours
📖 Reading list
Color in UI Design: A (Practical) Framework
‣
Color theory, often discussed in articles and books, might not always be the key to making great UI designs. Instead, the author believes in the power of color modifications, emphasizing the importance of tweaking a base color into various shades and variations. Here's a condensed breakdown of the insights shared:
Key Takeaways:
- Darker & Lighter Variations: Many well-designed interfaces feature darker and lighter variations of a primary theme color.
- Real-World Reference: In reality, shadows provide an example of how colors change. A shadow is essentially a darker variation of a base color.
- HSB Color System: Colors are best understood and modified using the Hue, Saturation, and Brightness (HSB) system.
- Rules for Color Variations:
- Darker variation: Lower the brightness and increase saturation.
- Lighter variation: Increase brightness and decrease saturation.
- Hue's Role: Hue, or the specific type of color, can be secondary when making color adjustments. However, hues have a perceived brightness or "luminosity." Adjusting hues towards red, green, or blue makes colors appear darker, while adjusting towards yellow, cyan, or magenta makes them appear brighter.
- Using One Base Color: It's possible to design an entire interface using one base color by making necessary modifications based on the principles discussed.
In essence, effective color usage in UI design doesn't always require an elaborate palette. Mastery over modifying a single color and understanding its different variations can be more pivotal.
Building your color palette
‣
Building a Useful Color Palette
- Common Misconception: Automated color palette generators give you about five colors, but this approach isn't always practical for designing a real-world website.
- Three Main Color Categories:
- Greys: Used in most interface elements, like text and backgrounds. You'll likely need 8-10 different shades, from a deep grey (not pure black) up to white.
- Primary Colors: One or two main colors representing your site (e.g., Facebook's blue). Requires 5-10 shades ranging from light to dark.
- Accent Colors: Supplementary colors to communicate specific actions or states, like warnings or highlights. Depending on the complexity, you might need up to 10 different colors with 5-10 shades each.
- Building Your Palette:
- Start with a Base Color: Choose a neutral color that could be used for a button background.
- Find the Extremes: Decide on your darkest and lightest shades for each color category.
- Fill in the Middle: After choosing your darkest, lightest, and base shades, fill in the in-between shades. A 9-shade system (labeling the darkest as 900 and the lightest as 100) can be balanced and versatile.
- Tips:
- Avoid using CSS functions to lighten or darken colors on-the-go; it leads to inconsistency.
- Trust your judgment. While the systematic approach is a good starting point, fine-tuning with your eyes is essential.
- Limit the number of shades to maintain a coherent design.
Remember, crafting the perfect color palette is an art, not just a science. It's essential to be systematic but also flexible and intuitive in your approach.
Getting WCAG color contrast right
‣
WCAG and Its Importance in UI Design
- Introduction to WCAG:
- The Web Content Accessibility Guidelines (WCAG) set rules to make products accessible to those with disabilities.
- Developed as an open standard by W3C, they're not exhaustive but serve as a general framework.
- Relevance of WCAG 2.1:
- Recognized as the primary standard for accessibility.
- Legally required by many governments via laws like Section 508 and the European Accessibility Act (EAA).
- Essential for those selling to government organizations.
- Enhances user experience for a broader audience, factoring in temporary disabilities.
- Levels of Conformance:
- Three levels: A, AA, and AAA.
- Most aim for AA as it balances accessibility with brand design.
- AAA is extensive, e.g., it requires a 7:1 contrast ratio for text.
- WCAG 2.1 and Color Contrast:
- Designers frequently address color contrast requirements.
- Contrast ratio measures the difference in luminance between two colors.
- W3C focuses on luminance contrast as it is perceivable by nearly everyone.
- Understanding Contrast Ratios:
- Defined by the difference in brightness between two colors.
- Several tools available for designers to check contrasts, e.g., WebAIM Contrast Checker.
- Contrast Requirements:
- Text should have a 4.5:1 contrast ratio with the background.
- Links need a 3:1 contrast if they don’t have another visual cue.
- UI components should have a 3:1 contrast ratio with their surroundings.
- Focus indicators should have specific contrast levels and dimensions.
- Interaction States:
- No specific requirements for hover states, but the text must maintain a 4.5:1 contrast ratio.
- Conclusion:
- WCAG 2.1 is vital for accessibility and broadening product reach.
- AA conformance strikes a balance between accessibility and design.
- Accessibility benefits not just those with permanent disabilities but also those with temporary impediments.
Guidelines by Apple and Google
‣
📺 Watch list
60-30-10 Color Rule
Basics of accessibility in UI Design
← Previous
Next →