Help us fix this page
If you found a broken link, missing page, or incorrect redirect, please let us know. Your report helps us improve the website for everyone.

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.
color-mix().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:
The color wheel is a practical tool for identifying harmonious colour combinations.
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 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 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 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-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:
| Feature | HSL | OKLCH |
|---|---|---|
| Perceptual uniformity | No-equal lightness looks different across hues | Yes-equal lightness looks equal across all hues |
| Gradient interpolation | Poor-can produce muddy or oversaturated results | Excellent-smooth, natural-looking transitions |
| Accessibility | Harder to predict contrast | Easier to maintain consistent contrast |
| Browser support | Universal | Broadly 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 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 refers to the perceived warmth or coolness of a colour, often used to create moods and atmospheres in design and art.
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 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.
When discussing colour variations, it is essential to differentiate between tints, shades, and tones.
Understanding saturation, hue, and lightness is essential for controlling how a colour is perceived.
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.
| Scheme | Description | Best For |
|---|---|---|
| Monochromatic | Variations of a single hue | Clean, minimalist interfaces; easiest to make accessible |
| Analogous | 2–3 hues adjacent on the wheel (e.g., blue, blue-green, green) | Nature-inspired designs; harmonious feel |
| Complementary | Colors opposite on the wheel (e.g., blue and orange) | High contrast; vibrant effects |
| Triadic | Three evenly spaced colours | Vibrant and balanced look |
| Tetradic | Four colours arranged into two complementary pairs | Rich colour diversity and balance |
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 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.
| Color | Associations | Common Use Cases |
|---|---|---|
| Red | Passion, excitement, urgency, danger | Calls to action, sales, alerts |
| Blue | Calmness, trust, reliability, professionalism | Corporate, healthcare, tech |
| Yellow | Happiness, optimism, attention | Warnings, highlights, cheerful brands |
| Green | Nature, growth, balance, health | Environmental, wellness, finance |
| Purple | Luxury, creativity, mystery | Premium brands, creative industries |
| Orange | Energy, enthusiasm, warmth | Food, entertainment, youth brands |
| Black | Power, sophistication, elegance | Luxury, high-end products |
| White | Purity, simplicity, cleanliness | Minimalist designs, healthcare |
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.
| Element | Level AA | Level AAA |
|---|---|---|
| Normal text (under 18pt / 14pt bold) | 4.5:1 minimum | 7:1 minimum |
| Large text (18pt+ / 14pt+ bold) | 3:1 minimum | 4.5:1 minimum |
| UI components and graphics | 3:1 minimum | Not specified |
| Incidental text (decorative, logos) | No requirement | No 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.
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:
| Tool | Purpose |
|---|---|
| WebAIM Contrast Checker | Manual contrast ratio testing |
| Chrome DevTools | Built‑in contrast checking in element inspector |
| axe-core / WAVE | Automated scanning of entire pages |
| Colour Contrast Analyser (CCA) | Desktop app for complex cases |
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.
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.