Comprehensive guide to color theory

Color is a fundamental element of design that communicates, evokes emotions, and creates visual interest. It plays a key role in guiding viewer perception and interpretation. Whether you are designing a website, an advertisement, or a piece of art, understanding color theory can dramatically enhance your work.

This article covers essential concepts-color types, temperature, tints, shades, saturation, hue, lightness, the color wheel, harmony, schemes, psychology, and accessibility considerations including the European Accessibility Act (EAA) and WCAG 2.2 requirements.

TL;DR

  • WCAG 2.2 Level AA is the legal baseline for digital accessibility across the EU, requiring a minimum contrast ratio of 4.5:1 for normal text and 3:1 for large text and UI components. As of 2025, 83.6% of homepages fail basic colour contrast requirements.
  • OKLCH is the modern CSS color space replacing HSL. Unlike HSL, OKLCH is perceptually uniform-equal steps in lightness look equal across all hues, making it the recommended space for CSS gradients and color-mix().
  • The European Accessibility Act (EAA) has been applicable since 28 June 2025 under Directive (EU) 2019/882. Slovakia transposed it via Act No. 351/2022 Coll. on the accessibility of products and services for persons with disabilities.
  • Colour is the first thing noticed on a screen (within 50 ms), and low colour contrast is the most common WCAG failure-52% of accessibility lawsuits cite contrast issues.

The Color Wheel

The color wheel is a circular representation of colors arranged according to their chromatic relationships. First developed by Sir Isaac Newton in 1666, it remains one of the most valuable tools for understanding color theory.

The color wheel consists of:

  • Primary Colors: Red, blue, and yellow. These colours cannot be made by mixing other colours and are the basis for all other hues.
  • Secondary Colors: Green, orange, and purple. Created by mixing two primary colours.
  • Tertiary Colors: Created by mixing a primary colour with a neighbouring secondary colour (e.g., red-orange, blue-green).

The color wheel is a practical tool for identifying harmonious colour combinations.

Understanding Color Models

Color can be represented using different formats, each serving distinct purposes in digital and print design. The most common formats include HEX, RGB, HSL, and the modern OKLCH.

HEX (Hexadecimal Colors)

HEX is a six‑digit code used primarily in web design to define colours. It begins with a hash symbol (#) followed by a combination of letters and numbers that correspond to red, green, and blue components. For example, #FF5733 represents a vivid orange.

RGB (Red, Green, Blue)

RGB is an additive colour model used for digital displays. Colours are created by mixing different intensities of red, green, and blue light, each ranging from 0 to 255.

HSL (Hue, Saturation, Lightness)

HSL is a cylindrical colour model that defines colour in terms of three components: hue, saturation, and lightness. While popular, HSL has a significant flaw: it is not perceptually uniform. Equal steps in lightness do not look equal across different hues-yellow at 50% lightness appears bright, while blue at 50% appears dark.

OKLCH (Lightness, Chroma, Hue) – The Modern Standard

OKLCH-the cylindrical form of Ottosson’s Oklab colour space-is the interpolation space recommended by CSS Color 4 for gradients and color-mix(), and it is now broadly deployed. It is the default palette space in modern CSS tooling such as Tailwind CSS v4.

Key advantages over HSL:

FeatureHSLOKLCH
Perceptual uniformityNo-equal lightness looks different across huesYes-equal lightness looks equal across all hues
Gradient interpolationPoor-can produce muddy or oversaturated resultsExcellent-smooth, natural-looking transitions
AccessibilityHarder to predict contrastEasier to maintain consistent contrast
Browser supportUniversalBroadly supported in modern browsers (Chrome, Firefox, Safari, Edge)

Example usage in CSS:

/* OKLCH syntax: oklch(lightness chroma hue) */
.element {
 /* Lightness 50%, Chroma 0.15, Hue 265° (purple) */
 background-color: oklch(0.5 0.15 265);
 color: oklch(0.9 0.05 265);
}
/* Generating accessible color variants with OKLCH */
:root {
 --brand-primary: oklch(0.5 0.2 240); /* Blue */
 --brand-primary-light: oklch(0.7 0.15 240); /* Lighter variant */
 --brand-primary-dark: oklch(0.3 0.15 240); /* Darker variant */
}

CMYK (Cyan, Magenta, Yellow, Key/Black)

CMYK is a subtractive colour model used in printing. Colours are created by subtracting various wavelengths of light using the four ink colours: cyan, magenta, yellow, and black. Unlike RGB, CMYK applies to physical media where mixing ink produces different results than mixing light.

Color Temperature

Color temperature refers to the perceived warmth or coolness of a colour, often used to create moods and atmospheres in design and art.

Warm Colors

Warm colours-red, orange, and yellow-are associated with energy, passion, and vibrancy. They tend to stand out, draw attention, and evoke feelings of warmth and excitement.

Cool Colors

Cool colours-blue, green, and purple-are associated with calmness, relaxation, and professionalism. They recede into the background and can make a design feel more spacious and serene. Most enterprise and SaaS interfaces lean towards cool palettes because they reduce visual fatigue during extended use.

Tints, Shades, and Tones

When discussing colour variations, it is essential to differentiate between tints, shades, and tones.

  • Tint: Created by adding white to a colour, making it lighter. Often used to convey softness or lightness.
  • Shade: Created by adding black to a colour, making it darker. Often evokes sophistication or seriousness.
  • Tone: Created by adding gray (a mixture of black and white) to a colour. Tones reduce intensity, resulting in more muted or neutral colours that add depth and subtlety.

Saturation, Hue, and Lightness

Understanding saturation, hue, and lightness is essential for controlling how a colour is perceived.

  • Saturation: Refers to the intensity or purity of a colour. Highly saturated colours appear vivid and rich; desaturated colours appear muted and dull.
  • Hue: Refers to the dominant wavelength of light, which determines the base colour (red, blue, yellow, etc.).
  • Lightness: Refers to how light or dark a colour appears. Modified to create contrast within a design, enhancing readability and focus.

Color Harmony and Schemes

Color harmony refers to aesthetically pleasing combinations of colours based on their position on the colour wheel. When colours harmonize, they create a sense of order, balance, and beauty.

Types of Color Schemes

SchemeDescriptionBest For
MonochromaticVariations of a single hueClean, minimalist interfaces; easiest to make accessible
Analogous2–3 hues adjacent on the wheel (e.g., blue, blue-green, green)Nature-inspired designs; harmonious feel
ComplementaryColors opposite on the wheel (e.g., blue and orange)High contrast; vibrant effects
TriadicThree evenly spaced coloursVibrant and balanced look
TetradicFour colours arranged into two complementary pairsRich colour diversity and balance

The 60-30-10 Rule

The 60-30-10 heuristic is a practical guideline for colour distribution: 60% dominant colour, 30% secondary colour, and 10% accent colour. This works because high-saturation colours are perceptually heavy-a small accent dot can visually dominate a large neutral surface.

Color Psychology and Emotions

Color psychology explores how different colours evoke specific emotional responses and influence behaviour. Research shows that users assess the visual appeal of a web page within 50 milliseconds, and colour is the first thing noticed on a screen.

ColorAssociationsCommon Use Cases
RedPassion, excitement, urgency, dangerCalls to action, sales, alerts
BlueCalmness, trust, reliability, professionalismCorporate, healthcare, tech
YellowHappiness, optimism, attentionWarnings, highlights, cheerful brands
GreenNature, growth, balance, healthEnvironmental, wellness, finance
PurpleLuxury, creativity, mysteryPremium brands, creative industries
OrangeEnergy, enthusiasm, warmthFood, entertainment, youth brands
BlackPower, sophistication, eleganceLuxury, high-end products
WhitePurity, simplicity, cleanlinessMinimalist designs, healthcare

WCAG 2.2 Contrast Requirements

WCAG 2.2 defines two conformance levels for colour contrast. Level AA is the legal baseline for most jurisdictions; Level AAA is the aspirational target.

ElementLevel AALevel AAA
Normal text (under 18pt / 14pt bold)4.5:1 minimum7:1 minimum
Large text (18pt+ / 14pt+ bold)3:1 minimum4.5:1 minimum
UI components and graphics3:1 minimumNot specified
Incidental text (decorative, logos)No requirementNo requirement

83.6% of websites fail colour contrast requirements, making it the single most common accessibility failure on the web. 52% of accessibility lawsuits cite contrast issues.

European Accessibility Act (EAA)

The European Accessibility Act (Directive (EU) 2019/882) has been applicable since 28 June 2025. It requires digital products and services to meet accessibility standards aligned with WCAG 2.1 Level AA (with WCAG 2.2 encouraged for future compliance).

Slovakia has transposed the EAA through Act No. 351/2022 Coll. on the accessibility of products and services for persons with disabilities. Key requirements include:

  • Sufficient colour contrast (minimum 4.5:1 for text, 3:1 for UI components)
  • No reliance on colour alone to convey meaning
  • Colour‑blind‑friendly design

Best Practices for Accessible Color

  1. Use sufficient colour contrast. Test every text/background combination against WCAG 2.2 AA requirements.
  2. Avoid using colour alone to convey meaning. Error messages should include text + icons, not just red text.
  3. Avoid red-green and yellow-blue combinations, as they present challenges to many with colour blindness.
  4. Use bold instead of colour for emphasis.
  5. Use large text and simple fonts. Sans-serif fonts are easiest to read.
  6. Test with colour blindness simulators like Color Oracle or WhoCanUse.

Tools for Testing Color Accessibility

ToolPurpose
WebAIM Contrast CheckerManual contrast ratio testing
Chrome DevToolsBuilt‑in contrast checking in element inspector
axe-core / WAVEAutomated scanning of entire pages
Colour Contrast Analyser (CCA)Desktop app for complex cases

Key Takeaways

  1. WCAG 2.2 Level AA requires 4.5:1 contrast for normal text and 3:1 for large text and UI components. As of 2025, 83.6% of websites fail this requirement.
  2. OKLCH is the modern CSS color space, replacing HSL. It is perceptually uniform and is the default in Tailwind CSS v4.
  3. The European Accessibility Act (EAA) has been applicable since 28 June 2025, transposed in Slovakia by Act No. 351/2022 Coll.
  4. Colour is the first thing noticed on a screen (within 50 ms), making it a critical design element.
  5. 52% of accessibility lawsuits cite colour contrast issues-contrast is both the most common failure and the easiest to fix.
  6. Avoid using colour alone to convey meaning-always use text, icons, or patterns in addition to colour.
  7. The 60-30-10 rule (60% dominant, 30% secondary, 10% accent) provides a practical framework for colour distribution.

Conclusion

Understanding colour theory is essential for effective design, as it affects how audiences perceive and react to visual content. By mastering the various aspects of colour-types, temperature, tints, shades, saturation, hue, and lightness-designers can create more impactful work.

The modern colour landscape is defined by OKLCH, the perceptually uniform colour space recommended by CSS Color 4 and now broadly deployed. Accessibility requirements-WCAG 2.2, the European Accessibility Act, and Slovak Act No. 351/2022 Coll.-demand careful attention to colour contrast, with 4.5:1 as the minimum for normal text.

Moreover, colour psychology reveals how colours can influence emotions and behaviour, providing valuable insights for crafting compelling designs. Ultimately, a thorough grasp of these concepts enables designers to harness the power of colour to enhance communication, evoke desired responses, and achieve visual harmony in their work.

References

Need help with your design and branding? Playful Sparkle has been engineering digital products since 2004, offering Branding & Strategy, UI/UX & Web Design, and Graphic & Visual Design services. Our team can help you create colour palettes that are both visually stunning and accessible. Contact us to discuss how we can help you elevate your brand.

Was this helpful - Post
Zsolt Oroszlány

Zsolt Oroszlány

Founder & Chief Creative Officer of Playful Sparkle since 2004, combining business leadership, digital strategy, design, and software engineering to help organizations build effective digital solutions. Regularly publishes insights on web development, SEO, design, and emerging technologies.