Overview of Colors used in Website Desiging

In UI/UX website design, "color displays" refer to the technical color modes used to render colors on screens, as well as the strategic, functional, and aesthetic application of colors. Digital design almost exclusively uses additive color models (light-emitting) rather than subtractive (ink-based) models. 

Here is a list of the different types and kinds of color applications in UI/UX web design:

Technical Color Modes (Digital)

These are the underlying formats used in design software (Figma, Adobe XD) to define how screens render color. 

  • RGB (Red, Green, Blue): The fundamental additive color model for all digital displays, including monitors and mobile phones.
  • HEX (Hexadecimal): A six-character alphanumeric string representing RGB values. It is the standard format used in HTML/CSS for web design.
  • RGBA (RGB + Alpha): RGB with an added Alpha channel that defines transparency (e.g., rgba(255, 0, 0, 0.5) for 50% transparent red).
  • HSL (Hue, Saturation, Lightness): A more intuitive model for humans, defining color by its type (hue), intensity (saturation), and lightness.
  • Index Color: An 8-bit mode storing a limited palette of up to 256 colors, used for extreme image optimization to speed up website load times. 

Functional Color Roles in UI/UX

Colors are categorized based on their purpose within the interface hierarchy, often following the 60-30-10 rule

  • Primary Colors: The brand’s core color, used for main navigation, top app bars, and major calls to action (CTAs).
  • Secondary Colors: Colors that support the primary color, used for accents, FABs (Floating Action Buttons), or to provide variety.
  • Neutral Colors (Grays): Shades of white, gray, and black, used for backgrounds, text, and borders. These occupy the majority (60%) of the design.
  • Semantic/Feedback Colors: Colors that convey meaning or system status (e.g., Green for Success, Red for Error, Yellow for Warnings).
  • Accent Colors: Vibrant colors used sparingly to draw attention to specific, critical elements like CTA buttons. 

Types of Color Schemes (Palettes)

These are methods for choosing colors that are harmonious or create specific visual impact. 

  • Monochromatic: Uses variations of a single hue (different tints, tones, and shades).
  • Analogous: Uses colors adjacent to each other on the color wheel (e.g., blue, blue-green, green) for a soothing look.
  • Complementary: Uses colors opposite each other on the wheel (e.g., blue and orange) for high contrast and to grab attention.
  • Split-Complementary: A base color combined with two colors adjacent to its complement, providing high contrast with less tension.
  • Triadic: Three colors evenly spaced around the color wheel, offering a vibrant, balanced, and dynamic palette.
  • Achromatic: A palette consisting only of gray, black, and white, ideal for clean, minimalist, and modern designs. 

Special Display Modes

  • Dark Mode: Uses a dark background with light text to reduce eye strain, often utilizing shades of dark gray rather than pure black.
  • Light Mode: The standard, high-contrast mode with a white or light gray background and dark text, optimized for readability.
  • High Contrast/Accessibility Mode: Palettes designed to comply with WCAG standards for color blindness, ensuring enough contrast (4.5:1 ratio) for visual impairments. 

Summary of Best Practices

  • Use HEX and RGB for digital design.
  • Limit your primary colors to a maximum of 3.
  • Use semantic colors consistently (e.g., never make an error message green).
  • Use 60-30-10 ratio (60% Neutral, 30% Secondary, 10% Primary/Accent). 

In UI/UX website design, colors are primarily defined and displayed using specific color models that are optimized for digital screens. The primary models are RGBHEX, and HSL/HSV

Color Models Used in UI/UX Design - These models are all used to specify colors for light-emitting displays (additive color), unlike the subtractive models (like CMYK) used for print:

  • RGB (Red, Green, Blue): The foundational model for digital displays. Colors are created by mixing varying intensities of red, green, and blue light. Each color channel is assigned a value from 0 to 255; for example, RGB(255, 0, 0) is pure red, and RGB(255, 255, 255) is white.
  • HEX (Hexadecimal): This is a shorthand for the RGB model, commonly used in web development and CSS coding. It's a six-character alphanumeric code (e.g., #FFFFFF for white, #000000 for black) that represents the red, green, and blue values.
  • HSL (Hue, Saturation, Lightness) / HSV (Hue, Saturation, Value): These models are based on human color perception and are often more intuitive for designers when building color palettes.
    • Hue is the actual color (e.g., red, blue) on a 360-degree color wheel.
    • Saturation is the intensity or purity of the color.
    • Lightness/Value determines the brightness or darkness of the color. 

Types of Color Displays/Schemes in UI/UX - UI/UX designers leverage different color schemes (or palettes) based on color theory to create harmonious and effective visual experiences:

  • Monochromatic: Uses different tints, shades, and tones of a single hue to create a cohesive and clean look.
  • Complementary: Combines colors from opposite sides of the color wheel (e.g., blue and orange) to create high contrast and draw attention to specific elements like calls-to-action (CTAs).
  • Analogous: Uses colors that are adjacent to each other on the color wheel (e.g., yellow, yellow-green, and green) to create a soothing and harmonious look.
  • Triadic: Uses three colors that are evenly spaced around the color wheel (e.g., red, blue, and yellow) to create a vibrant, balanced design.
  • Achromatic: Devoid of hues, leveraging only neutral colors such as black, white, and gray to create a clean, minimalist design. 

Functional Color Types - In a UI design system, colors are also categorized by their function: 

  • Primary Colors: The main brand colors, used for dominant elements like the main navigation and primary CTAs.
  • Secondary Colors: Support the primary colors and are used for accenting or distinguishing different parts of the interface.
  • Neutral Colors: Shades of white, black, and gray used for backgrounds, text, and borders to provide balance and enhance readability.
  • Semantic/Feedback Colors: Convey specific meanings or system status consistently across the interface (e.g., red for errors, green for success, yellow/orange for warnings, and blue for information).

Hex codes are #RRGGBB (e.g., #FF0000 for Red), RGB uses 0-255 values (e.g., rgb(255,0,0)), RGBA adds transparency (e.g., rgba(255,0,0,0.5)), HSL uses Hue (0-360), Saturation (0-100%), Lightness (0-100%) (e.g., hsl(0, 100%, 50%)), while CMYK uses percentages (e.g., 0, 100, 100, 0 for Red). A common color like Red is #FF0000 (Hex), rgb(255,0,0) (RGB), rgba(255,0,0,1) (RGBA), hsl(0, 100%, 50%) (HSL), and cmyk(0, 100, 100, 0) (CMYK). 

Here's a table for common colors:

Color  Hex (Hexadecimal) RGB (Red, Green, Blue) RGBA (Red, Green, Blue, Alpha)    
Red #FF0000 rgb(255, 0, 0) rgba(255, 0, 0, 1)    
Green #008000 rgb(0, 128, 0) rgba(0, 128, 0, 1)    
Blue #0000FF rgb(0, 0, 255) rgba(0, 0, 255, 1)    
Yellow #FFFF00 rgb(255, 255, 0) rgba(255, 255, 0, 1)    
Black #000000 rgb(0, 0, 0) rgba(0, 0, 0, 1)    
White #FFFFFF rgb(255, 255, 255) rgba(255, 255, 255, 1)    
Cyan #00FFFF rgb(0, 255, 255) `rgba(0, 255, 255  

 

HSL (Hue, Saturation, Lightness) CMYK (Cyan, Magenta, Yellow, Black)
hsl(0°, 100%, 50%) cmyk(0%, 100%, 100%, 0%)
hsl(120°, 100%, 25%) cmyk(100%, 0%, 100%, 50%)
hsl(240°, 100%, 50%) cmyk(100%, 100%, 0%, 0%)
hsl(60°, 100%, 50%) cmyk(0%, 0%, 100%, 0%)
hsl(0°, 0%, 0%) cmyk(0%, 0%, 0%, 100%)
hsl(0°, 0%, 100%) cmyk(0%, 0%, 0%, 0%)
   
Code

UI/UX color displays involve color models (RGB/CMYK) for screen/print, color palettes (Monochromatic, Analogous, Complementary, Triadic) for schemes, and roles (Primary, Secondary, Accent, Neutral) for function, all guiding user emotion, hierarchy, and accessibility through contrast and color psychology to enhance usability, brand identity, and engagement on websites. 

Types of Color Systems & Models

  • RGB (Red, Green, Blue): Additive model for screens, mixing light to create colors (0-255 values).
  • CMYK (Cyan, Magenta, Yellow, Black): Subtractive model for print, though less common in web UI. 

Common Color Palettes & Schemes

  • Monochromatic: Variations (tints, shades) of a single hue for simplicity and sophistication.
  • Analogous: Colors next to each other on the wheel (e.g., blue, blue-green, green) for harmony.
  • Complementary: Opposite colors (e.g., blue & orange) for high contrast and energy.
  • Triadic: Three colors evenly spaced on the wheel (e.g., Red, Yellow, Blue) for vibrancy.
  • Split-Complementary: A base color plus the two colors adjacent to its complement for balance.
  • Achromatic: Black, white, and gray for a minimalist, clean look. 

Key Color Roles in UI

  • Primary: Main brand color, used for key elements like navigation.
  • Secondary/Accent: Highlights important actions (CTAs, active states, notifications).
  • Neutral (Backgrounds/Text): Whites, grays, blacks for readability and balance, creating contrast. 

Functions in UI/UX Design

  • Hierarchy & Guidance: Using color to show what's most important or interactive (e.g., active buttons).
  • Branding: Reinforcing brand identity through consistent color use.
  • Emotion & Mood: Eliciting feelings (e.g., red for urgency, blue for trust).
  • Accessibility: Ensuring sufficient contrast for users with visual impairments (e.g., via contrast checkers).
  • Feedback: Indicating status (e.g., green for success, red for error). 

In UI/UX website design, color is specified using various color models and displayed using different color spaces. The primary models used are RGB and HEX for digital screens, while display technologies use color spaces like sRGB, Adobe RGB, and DCI-P3

Color Models (Used in Design and Code) - Color models are systems for defining and organizing colors digitally. 

  • RGB (Red, Green, Blue): An additive color model where red, green, and blue light are combined in varying intensities (0-255) to produce a wide spectrum of colors. This is the foundational model for most digital displays.
    • Function: Used by screens (monitors, TVs, phones) to display color using light.
  • HEX (Hexadecimal): A six-character alphanumeric code (e.g., #FFFFFF for white) that is a shorthand for RGB values.
    • Function: The standard for specifying colors in web design (HTML/CSS) due to its ease of use in coding.
  • HSL (Hue, Saturation, Lightness): A polar color model that represents colors based on their position on the color wheel (hue), intensity (saturation), and brightness (lightness).
    • Function: More intuitive for designers to create harmonious palettes and adjust color variations (tints, shades, tones) compared to RGB values.
  • RGBA: The same as RGB, but with an added "alpha" (A) channel to control the opacity/transparency of an element.
    • Function: Allows for transparency effects, such as semi-transparent overlays or shadows.
  • CMYK (Cyan, Magenta, Yellow, Key/Black): A subtractive color model used primarily for physical printing, not web design.
    • Function: Not used for screen displays, but important for brand consistency if digital assets will also be printed (e.g., business cards, merchandise). 

Color Displays and Spaces (Used by Screens) - Color spaces define the range (gamut) of colors that a specific device can capture or display:

  • sRGB (Standard Red Green Blue): The current universal standard color space for the web and most consumer devices.
    • Function: Ensures consistent color appearance across the widest range of monitors, smartphones, and web browsers.
  • Adobe RGB: A wider color gamut than sRGB, specifically designed to encompass most of the colors achievable in CMYK printing.
    • Function: Primarily for professional photography and print-oriented graphic design to ensure accurate color matching between screen and print output.
  • DCI-P3 (Display P3): A wider color space used in digital cinema and high-end consumer devices like modern Apple products and 4K TVs.
    • Function: Offers more vibrant reds and greens than sRGB, providing a richer viewing experience for video content and high dynamic range (HDR) displays. 

Functions of Color in UI/UX Design - Colors serve several key functions in UI/UX:

  • Visual Hierarchy: Guides the user's eye to the most important elements (e.g., call-to-action buttons use a vibrant accent color).
  • Brand Identity: Reinforces brand personality and ensures a consistent visual experience across all platforms.
  • Conveying Status and Feedback: Uses specific "semantic" colors for universal meanings:
    • Green for success or confirmation.
    • Red for error messages, warnings, or urgency.
    • Blue for information messages or links.
    • Gray/Neutral for inactive or background elements.
  • Accessibility and Readability: Ensures sufficient contrast between text and background colors so content is easily readable for all users, including those with visual impairments. Designers use tools like the Contrast Checker to meet Web Content Accessibility Guidelines (WCAG).
  • Emotional Resonance: Leverages color psychology to evoke specific emotions and influence user behavior (e.g., blue for trust, yellow for optimism).

Why CMYK is Not Used in UI/UX Design

CMYK is used for printing, where colored inks (cyan, magenta, yellow, and black) are combined on a white surface to subtract light and create colors. 

  • Different Medium: CMYK is for physical pigments on paper, while RGB is for light emitted by screens.
  • Color Gamut: RGB offers a much wider range of vibrant colors (a larger gamut) than CMYK. Colors designed in RGB and then converted to CMYK for print often appear duller or "muddy".
  • Intended Use: Using the wrong model will lead to significant color inconsistencies between the digital design and any potential physical output. 

Color Display Types (Color Schemes)

Within these color models, designers utilize various color schemes (palettes) to create a cohesive user experience. These schemes are based on color theory principles: 

  • Monochromatic: Uses variations (tints, tones, and shades) of a single hue for a clean, cohesive, and sophisticated look.
  • Analogous: Uses colors that are adjacent to each other on the color wheel to create a harmonious and soothing look.
  • Complementary: Uses colors directly opposite each other on the color wheel to provide high contrast and draw attention, often used for call-to-action buttons or important alerts.
  • Triadic: Uses three colors equally spaced on the color wheel to create a vibrant yet balanced design.
  • Tetradic (Double Complementary): Uses two complementary pairs (four colors) to form a rectangle on the color wheel. This can be complex to balance but offers a rich, diverse palette.
  • Achromatic: Relies only on neutral colors like black, white, and gray, often used for minimalist and clean interfaces.

 

A hexadecimal (hex) code is a six-digit alphanumeric code used in digital design and web development to represent colors. It is a compact way to express the intensity of Red, Green, and Blue (RGB) components, ranging from 00 (minimum) to FF (maximum)

Common Hex, RGB, RGBA, and HSL Codes 

Hex codes are an alternative representation of RGB values for screen displays, while CMYK is a different model used for printing. Below are examples of common colors across different color models: 

Name  Hex Code RGB Code HSL Code
White #FFFFFF rgb(255, 255, 255) hsl(0, 0%, 100%)
Black #000000 rgb(0, 0, 0) hsl(0, 0%, 0%)
Red #FF0000 rgb(255, 0, 0) hsl(0, 100%, 50%)
Green #00FF00 rgb(0, 255, 0) hsl(120, 100%, 50%)
Blue #0000FF rgb(0, 0, 255) hsl(240, 100%, 50%)
Yellow #FFFF00 rgb(255, 255, 0) hsl(60, 100%, 50%)
Cyan #00FFFF rgb(0, 255, 255) hsl(180, 100%, 50%)
Magenta #FF00FF rgb(255, 0, 255) hsl(300, 100%, 50%)

Understanding Color Models

  • Hexadecimal (Hex): Uses a base-16 system with digits 0-9 and A-F to represent color values in the format #RRGGBB. It's primarily used in HTML and CSS.
  • RGB (Red, Green, Blue): An additive color model where red, green, and blue light are combined to create colors on screens. Values range from 0 to 255 for each channel, e.g., rgb(255, 0, 0) is pure red.
  • RGBA (Red, Green, Blue, Alpha): An extension of RGB that includes an alpha channel to specify opacity, with values ranging from 0.0 (fully transparent) to 1.0 (fully opaque). Example: rgba(0, 0, 255, 0.5) is 50% transparent blue.
  • HSL (Hue, Saturation, Lightness): Represents colors using a cylindrical-coordinate system. Hue is a degree on the color wheel (0-360°), saturation is a percentage of intensity (0-100%), and lightness is a percentage of brightness (0-100%).
  • CMYK (Cyan, Magenta, Yellow, Key/Black): A subtractive color model used in color printing, where inks absorb light. CMYK values are typically represented as percentages (0-100%). CMYK values cannot be used directly in web design and need to be converted to RGB or Hex.
Select Chapter