Design resources

Short, practical guides for working with color — each links to the ColorMoodHub tool that puts it into practice.

Color theory essentials

Every color can be described by three properties. Hue is its position on the color wheel (red, orange, blue…). Lightness (or value) is how close it is to white or black. Chroma (or saturation) is how intense it is compared with a gray of the same lightness. Most palette problems are lightness problems: colors with different hues but identical lightness blur together, especially in grayscale or for people with color vision deficiencies.

Harmonies are reliable starting points because they are geometric relationships on the wheel:

ColorMoodHub computes harmonies in OKLCH, a perceptually uniform color space, so rotating hue keeps perceived lightness stable. That is why a complementary color generated here looks equally “heavy” as the original.

Accessible color

WCAG 2.2 defines contrast as a ratio between the relative luminance of two colors, from 1:1 (identical) to 21:1 (black on white). Level AA requires 4.5:1 for normal text and 3:1 for large text (24px, or 18.66px bold) and for meaningful UI components such as input borders and icons. Level AAA raises text requirements to 7:1 and 4.5:1.

Contrast is not the only consideration. Around 1 in 12 men has a color vision deficiency, most commonly reduced sensitivity to green (deuteranomaly). Never rely on hue alone to convey meaning — pair color with text labels, icons, patterns or a clear lightness difference.

Building a brand palette

A usable brand system has more than a logo color. Plan for these roles:

Test the system on real layouts before committing — a color that looks great as a swatch can overwhelm a full page. Brand Kit Builder → · Design Preview Studio →

Palettes in code

Store colors as CSS custom properties so every component reads from one source of truth. Adding channel variables lets you create transparent variants without new colors:

:root { --brand: #4f46e5; --brand-rgb: 79 70 229; } .button { background: var(--brand); } .button:hover { box-shadow: 0 6px 20px rgb(var(--brand-rgb) / 35%); }

In Tailwind CSS, extend the theme with a full 50–950 scale per color so utilities like bg-brand-50 and text-brand-900 exist. Modern CSS can also mix colors directly with color-mix(in oklab, …), which produces smoother results than mixing in sRGB.