Color Theory
Color theory is the set of rules and observations that describe how colors relate to each other and how those relationships are perceived. It gives you a reliable way to pick colors that work together instead of trying combinations at random.
This guide covers the color wheel, the three color models and when each one applies, the hue / saturation / lightness system every modern design tool uses, all six color harmonies with live swatches, color temperature, tints, tones and shades, what color psychology can and cannot tell you, and how to turn the whole thing into an accessible interface palette. Every swatch below is generated from the same math the palette generator uses, so you can reproduce any of it yourself.
What color theory actually is (and is not)
Color theory grew out of two separate traditions. The first is pigment practice — centuries of painters recording which paints mix into which, which pairs deaden each other, and which sit next to each other comfortably. Newton’s bending of the spectrum into a circle in 1704, Goethe’s work on perception, and later the Bauhaus teaching of Johannes Itten turned those observations into the wheel and the harmony rules still taught today. The second is colorimetry — the measurement of how human vision responds to light, which is what makes RGB screens, CMYK presses and contrast standards possible.
The important consequence is that color theory is a design vocabulary, not a law of nature. A triadic palette is not objectively correct; it is a spacing rule that reliably produces variety without collisions. Harmony rules are excellent starting points and poor finishing points. The colors you ship should be the ones that survive being tested at real sizes, on real screens, against real content.
The parts of color theory that are objective are the measurable ones: how light mixes, how ink mixes, and how much luminance contrast two colors have. Those are the parts that decide whether your interface is readable.
The color wheel
Hues arranged in a circle so that related colors sit together and opposites sit apart.
A color wheel takes the visible spectrum and bends it into a loop, joining red back to violet. Every harmony rule in this guide is simply a geometric relationship on that loop. The swatches below are a digital wheel sampled every 30°, all at the same saturation and lightness, so only the hue changes:
0°
#E61919
red
30°
#E68019
orange
60°
#E6E619
yellow
90°
#80E619
green
120°
#19E619
green
150°
#19E680
green
180°
#19E6E6
cyan
210°
#1980E6
blue
240°
#1919E6
blue
270°
#8019E6
purple
300°
#E619E6
magenta
330°
#E61980
magenta
Primary
The colors a model cannot make by mixing its other colors. On the traditional artist’s wheel these are red, yellow and blue.
Secondary
Made by mixing two primaries in equal parts: orange (red + yellow), green (yellow + blue) and purple (blue + red).
Tertiary
A primary mixed with an adjacent secondary — red-orange, yellow-orange, yellow-green, blue-green, blue-violet and red-violet. Together with the primaries and secondaries they make the classic twelve-part wheel.
Worth knowing: “primary” is a property of the model, not of the color. Red, yellow and blue are primary for pigment; red, green and blue are primary for light; cyan, magenta and yellow are primary for ink. None of these sets is more correct than the others — they answer different questions.
RYB, RGB and CMYK — three models, three jobs
RYB — the artist’s pigment wheel
Primaries: red, yellow, blue. This is the model taught in art classes and the one the classic twelve-part wheel is built on. It is a pigment model, so mixing is broadly subtractive: each added paint absorbs more light and the mixture gets darker and duller. RYB is not colorimetrically accurate — you cannot mix a clean cyan or magenta from it, which is why printing uses different primaries — but it predicts paint behaviour well enough to be genuinely useful at an easel.
Use it for: painting, traditional media, art education, and any time you are reasoning about complements the way a painter does (red opposite green, blue opposite orange, yellow opposite purple).
RGB — additive, for light and screens
Primaries: red, green, blue. RGB is additive — you are adding emitted light, not removing it. Start from black (no light) and each channel you add makes the result brighter. Red + green makes yellow, green + blue makes cyan, red + blue makes magenta, and all three at full intensity make white. Every pixel on every screen works this way, and hex codes, rgb() and HSL are all just different ways of writing an RGB coordinate.
Use it for: web, UI, video, anything shown on a display — including every tool on this site.
CMYK — subtractive, for print
Primaries: cyan, magenta, yellow, plus K for key (black). CMYK is subtractive — you start from white paper reflecting all wavelengths and each ink subtracts some of them. Cyan + magenta gives blue, magenta + yellow gives red, cyan + yellow gives green. In theory all three together give black; in practice they give a muddy brown and waste ink, so a dedicated black plate is added. CMYK also covers a smaller gamut than a screen, which is why vivid on-screen colors often print flatter than expected.
Use it for: anything physically printed — and convert and proof early, because bright RGB blues, greens and oranges are the most common casualties.
The trap to avoid: complements differ between models. On the RYB wheel the opposite of red is green. On the RGB/HSL wheel that every digital tool uses, the opposite of red (0°) is cyan (180°). Neither is wrong — they are answers from different models. Chroma Creator computes harmonies on the HSL wheel, which is the correct choice for screen work. See the complementary colors guide for the full chart, and the color mixing guide for what happens when you actually blend them.
Hue, saturation and lightness
The three dials behind almost every color decision you will make.
Hue — which color it is (0–360°)
Hue is the angle on the wheel: 0° red, 60° yellow, 120° green, 180° cyan, 240° blue, 300° magenta. Changing hue changes the color family and nothing else. Harmony rules are purely hue arithmetic.
0°
#DF2020
red
60°
#DFDF20
yellow
120°
#20DF20
green
180°
#20DFDF
cyan
240°
#2020DF
blue
300°
#DF20DF
magenta
Saturation — how pure it is (0–100%)
Saturation is the distance from grey. At 0% every hue collapses to the same grey; at 100% the hue is as intense as the model allows. Lowering saturation is the single most effective fix for a palette that feels loud or amateurish — most professional interfaces live between 10% and 60%.
0%
#808080
saturation
20%
#997466
saturation
40%
#B3684D
saturation
60%
#CC5C33
saturation
80%
#E65019
saturation
100%
#FF4400
saturation
Lightness — how much white or black (0–100%)
Lightness runs from black at 0% to white at 100%, with the pure hue at 50%. This is the dial that determines readability: contrast ratios are driven almost entirely by lightness difference, not hue difference.
10%
#330E00
lightness
26%
#852300
lightness
42%
#D63900
lightness
58%
#FF6229
lightness
74%
#FF9E7A
lightness
90%
#FFDACC
lightness
The catch: HSL lightness is not perceived brightness
HSL is a convenient reshaping of RGB, not a model of human vision. All four swatches below sit at exactly 50% lightness and 90% saturation, yet the yellow-green looks far brighter than the blue — and their measured contrast against white differs dramatically:
yellow
#F2CC0D
1.57:1 vs white
green
#33F20D
1.52:1 vs white
blue
#0D80F2
3.9:1 vs white
purple
#A60DF2
5.3:1 vs white
This is why you cannot judge accessibility by eye from HSL values alone, and why newer perceptual spaces such as LCH and OKLCH exist: in those, equal lightness numbers really do look equally light. Until your whole workflow uses them, measure with a contrast checker.
The six color harmonies
All computed from one base color — Coral (#FF7F50), hue 16° — by rotating hue on the wheel. The first swatch in each row is the base.
Complementary — 180° apart
Two hues directly opposite each other. Maximum hue contrast, so it commands attention — but equal amounts of both read as tense. Use one as the dominant color and the other only as an accent.
base
#FF7F50
#52D1FF
Analogous — neighbours, roughly ±30°
Adjacent hues that share underlying pigment. Calm, cohesive and low-risk — ideal for backgrounds, gradients and illustration. Because contrast is low, you usually need a separate accent or a strong lightness step to create hierarchy.
#FF527A
base
#FF7F50
#FFD752
Triadic — three hues 120° apart
Evenly spaced around the wheel. Vibrant and balanced, with more variety than a complementary pair and less tension. Keep one dominant and desaturate or lighten the other two, or the result gets circus-like fast.
base
#FF7F50
#52FF80
#8052FF
Split-complementary — the base plus the two colors flanking its complement
Nearly all the contrast of a complementary scheme with noticeably less friction, because the two opposing hues differ slightly from each other. The safest high-contrast scheme and a good default when a straight complement feels too aggressive.
base
#FF7F50
#52FFD7
#527AFF
Tetradic (square) — four hues 90° apart
Four hues forming two complementary pairs. The evenly spaced version shown here is the square scheme; the rectangle variant uses two pairs at unequal spacing for a more weighted result. Rich but hard to balance — pick one dominant hue and treat the rest as supporting.
base
#FF7F50
#7AFF52
#52D1FF
#D752FF
Monochromatic — one hue, varied lightness
A single hue at different lightness and saturation levels. Impossible to make clash, and the easiest scheme to keep accessible because you control lightness directly. Add a neutral and one accent hue when it starts feeling monotonous.
#C23400
base
#FF7F50
#FFE9E0
Want these for a different starting color? The color combinations pages run the same calculations for dozens of popular colors, including coral.
Warm, cool and color temperature
Warm hues
0°
#E61919
red
30°
#E68019
orange
60°
#E6E619
yellow
330°
#E61980
magenta
Cool hues
90°
#80E619
green
120°
#19E619
green
150°
#19E680
green
180°
#19E6E6
cyan
210°
#1980E6
blue
240°
#1919E6
blue
270°
#8019E6
purple
300°
#E619E6
magenta
The wheel splits into a warm half (reds, oranges, yellows and the magentas that lead back into red) and a cool half (greens, cyans, blues and violets). Warm colors tend to appear to advance toward the viewer and cool colors to recede — a depth cue painters call atmospheric perspective, and a genuinely useful one in interfaces: a warm accent on a cool background pops with very little effort.
Temperature is relative. A yellow-green reads warm beside a blue-green and cool beside an orange. Within a single hue family you can also shift temperature slightly — biasing a red toward orange warms it, biasing it toward magenta cools it. Consistently biasing every color in a palette the same way is one of the quiet tricks behind palettes that feel deliberate.
Do not confuse this with Kelvin. Correlated color temperature in photography and lighting runs the opposite way: a low value such as 2700K is an orange, perceptually warm light, while 6500K is bluish and perceptually cool. The physics scale and the design vocabulary are inverted relative to each other.
Tints, tones and shades
How one hue becomes a whole usable scale. Generated from Coral.
Tints — hue + white (lightness up)
#FF956F
#FFAA8B
#FFBFA8
#FFD5C5
#FFEAE2
Shades — hue + black (lightness down)
#FF571A
#E03C00
#A82D00
#701E00
#380F00
Tones — hue + grey (saturation down)
100% sat
#FF8052
80% sat
#EE8863
60% sat
#DC9074
40% sat
#CB9886
20% sat
#BAA097
Tints feel lighter and softer, shades feel deeper and more serious, and tones feel calmer and more sophisticated without changing how light or dark the color is. Tones are the most underused of the three in digital design: when a brand color is too shouty for large surfaces, dropping saturation usually solves it better than lightening, because lightening also destroys your contrast budget.
In practice you want a full scale rather than a single value — typically nine to eleven steps per hue, so you always have a legal text color, a border color and a background fill from the same family. The palette generator will build these scales for any starting color.
Color psychology — what holds up and what does not
Color does affect how people feel about an interface, but the effect is smaller and far more context-dependent than most design writing claims. Studies that report a specific color raising conversions by a fixed percentage are usually measuring contrast and salience — a button that stands out more from its surroundings gets clicked more, regardless of which hue produces that separation.
What is reasonably well supported: associations exist and are partly learned. Red is attention-grabbing and is conventionally tied to warning, error and urgency in Western interfaces. Blue is the most common corporate choice and reads as calm and institutional, partly through sheer repetition. Green carries growth, safety and success in most Western contexts. Yellow is the highest-visibility hue at typical screen luminances, which is why it dominates warning signage.
What is not supported: universal, culture-independent meanings. White signifies purity in much of the West and mourning in parts of East Asia. Red signals danger on a form field and prosperity at Lunar New Year. Meaning also flips within a single product — the same red is an error state in a checkout form and a discount badge on a product card.
The practical takeaway: use color psychology to set an overall tone, then let consistency do the real work. A color that always means the same thing inside your product will communicate more reliably than any inherited association, and it will survive translation to another market.
Applying color theory in UI and web design
Start with the 60/30/10 split. Roughly 60% of the surface is a dominant, near-neutral background, 30% is a secondary color used for structure and text, and 10% is the accent that carries actions. Below is that split built from the same base hue — a very pale tint as the dominant, a deep desaturated tone as the secondary, and the saturated base as the accent:
60% #F6F4F4 · 30% #6A4639 · 10% #FF7F50
A quiet background does the heavy lifting
Nearly all the surface is a near-neutral derived from the brand hue, so the single saturated element is unmissable without shouting.
Primary actionNeutrals are most of your palette. Real interfaces are mostly greys, and greys tinted very slightly toward your brand hue (5–15% saturation) look considered where pure #808080 looks dead. Budget more time on your neutral ramp than on your accent.
Define colors by role, not by name. Tokens like surface, border, text-muted, accent and danger survive a rebrand; a variable called --orange does not, and it breaks the moment you add a dark theme.
Reserve saturation for meaning. If your most vivid color appears in five different places, none of them reads as important. One accent, used only for the primary action on any given screen, is the fastest hierarchy fix there is.
Never encode information in hue alone. Around 1 in 12 men and 1 in 200 women have some form of color vision deficiency, and red/green is the most common axis — exactly the pairing most status systems reach for. Always pair color with an icon, a label or a shape. You can preview the effect with the color blindness simulator.
Test in both themes and in daylight. A hue that works on a white surface often needs more lightness and less saturation on a dark one. Check on an actual phone outdoors before signing off on a low-contrast decision.
Contrast: the part of color theory that is not optional
Real WCAG ratios, computed for four pairings drawn from the coral family.
Harmony rules move hue. Readability depends on relative luminance, which is mostly lightness. That mismatch is why a technically perfect complementary pair can be completely unreadable: two colors 180° apart at the same lightness have enormous hue contrast and almost no luminance contrast.
Body text sample
The quick brown fox jumps over the lazy dog.
#FFFFFF on #FF7F50
2.5:1 fails AA
White text on the raw base color
Body text sample
The quick brown fox jumps over the lazy dog.
#52D1FF on #FF7F50
1.42:1 fails AA
Complement as text on the base color
Body text sample
The quick brown fox jumps over the lazy dog.
#FFFFFF on #8F2600
8.59:1 passes AA for body text
White text on a darker shade of the same hue
Body text sample
The quick brown fox jumps over the lazy dog.
#8F2600 on #FFE1D6
6.95:1 passes AA for body text
Dark shade as text on a pale tint of the same hue
- 4.5:1 — minimum for normal body text (WCAG 2.1 AA, 1.4.3).
- 3:1 — minimum for large text (18pt, or 14pt bold and above).
- 3:1 — minimum for interface components and meaningful graphics (1.4.11).
- 7:1 — AAA level for body text, worth targeting for long-form reading.
Treat these as constraints on the palette, not as a final QA step. Pick your hues from the harmony rules, then adjust lightness until every text and control pairing clears its threshold — the hue relationships survive that adjustment almost untouched. Check any pair with the color contrast checker.
Putting it together: a working sequence
1. Pick one anchor hue. Usually the brand color, or a hue whose associations suit the product.
2. Choose a harmony for the supporting hues. Analogous for calm, split-complementary for a safe high-contrast accent, monochromatic if you want it foolproof.
3. Build a neutral ramp. Greys tinted a few percent toward the anchor hue, nine to eleven steps.
4. Generate tints, tones and shades for each hue so every role has a legal value available.
5. Assign roles, not names — surface, border, text, muted text, accent, danger, success.
6. Verify every pairing against WCAG and adjust lightness, not hue, to fix failures.
7. Test at real size, in both themes, and under color vision simulation before it ships.
Frequently asked questions
What is color theory?
Color theory is the body of practical rules and observations that describe how colors relate to one another and how those relationships are perceived. It covers how colors are organised on the color wheel, how they are mixed in paint, light and ink, and which combinations tend to read as harmonious, high-contrast or unsettled. It is a design vocabulary rather than a law of physics: it gives you predictable starting points instead of guesswork.
What are the three basic elements of color?
Hue, saturation and lightness. Hue is the color family — its position in degrees on the color wheel. Saturation is how pure the hue is, from fully grey at 0% to fully vivid at 100%. Lightness is how much white or black is mixed in, from black at 0% to white at 100%. Almost every color decision in design is an adjustment to one of these three values.
What is the difference between RYB, RGB and CMYK?
RYB (red, yellow, blue) is the traditional artist model used to predict how pigments mix, and it is the basis of the classic 12-part color wheel. RGB (red, green, blue) is an additive model: it describes mixing light, so it is what screens, web and UI design use — combining all three at full intensity gives white. CMYK (cyan, magenta, yellow, key/black) is a subtractive model for print: inks absorb wavelengths from white paper, so more ink means darker. They are different models for different media and should not be treated as interchangeable.
What are the main color harmonies?
The six standard harmonies are complementary (two hues 180 degrees apart), analogous (neighbours roughly 30 degrees apart), triadic (three hues 120 degrees apart), split-complementary (a hue plus the two colors either side of its complement), tetradic or square (four hues 90 degrees apart, forming two complementary pairs) and monochromatic (one hue at different lightness and saturation levels).
What is the difference between a tint, a tone and a shade?
A tint is a color with white added, which raises lightness and softens it. A shade is a color with black added, which lowers lightness and deepens it. A tone is a color with grey added, which lowers saturation while keeping roughly the same lightness. Tones are the most useful of the three in interface design because they mute a color without making it lighter or darker.
Which colors are warm and which are cool?
Warm colors sit on the red, orange and yellow side of the wheel, roughly 0 to 75 degrees plus the magentas above 300 degrees. Cool colors cover the greens, cyans, blues and violets, roughly 75 to 300 degrees. Warmth is relative as much as absolute: a yellow-green reads warm next to a blue-green and cool next to an orange.
Does color theory guarantee an accessible palette?
No. Harmony rules operate on hue, and accessibility depends almost entirely on lightness. Two complementary colors at the same lightness create maximum hue contrast and almost no luminance contrast, which is unreadable as text and invisible to many people with color vision deficiency. Always verify a pairing against the WCAG contrast ratios — 4.5:1 for body text, 3:1 for large text and interface components.
Is color psychology reliable?
Only partly. Broad associations such as red with alertness or blue with calm are real but weak, heavily culture-dependent and easily overridden by context — the same red means error in a form and success on a sale badge. Treat published claims about colors driving specific behaviours or conversion rates with scepticism. What is dependable is contrast, consistency and convention: colors used the same way every time carry meaning reliably.