Color tools

Color Theory: An Interactive Guide

What designers and developers need to know about color, from Newton's first color circle to OKLCH, with live demos you can play with.

  • Free foreverNo trial, no paywall, no usage limits.
  • No sign-upOpen the page and start. We never ask for an email to use a tool.
  • PrivateEverything runs in your browser. Your input is never uploaded or stored on our servers.
  • Works offlineOnce the page has loaded, the tool keeps working without a connection.

1. Hue, saturation and value

Every color has three properties. Drag each slider, then compare the color with its value: the gray of the same perceived lightness.

Azure

#398fe6

Its value

L* 58

The color family: its angle on the color wheel.
210°
How vivid the color is: 0% is gray, 100% is the purest version of the hue.
75%
Brightness (the V in HSV): 0% is black, 100% is the brightest version of the color.
90%

Every hue at 75% saturation and 90% value

Converts each chip to the gray of the same CIE lightness (L*). Same HSV value, very different lightness.
53
68
89
83
81
81
83
58
35
44
57
54

Numbers are CIE L* (perceived lightness, 0 to 100). Yellow and cyan are far lighter than blue and violet at the same HSV value, which is why value contrast must be checked, not assumed.

Takeaway: Hue picks the color family, saturation its intensity, value its lightness. Value does most of the work in a design.

1 / 10

Want a site designed with this level of care? Talk to our team

Quick answer

Color theory is the set of principles that explains how colors mix, how they relate to each other on the color wheel, and how people perceive them in combination. Its core ideas are the three properties of color (hue, saturation and value), harmonies such as complementary and analogous, warm and cool temperature, and contrast. Playxoft's free interactive Color Theory guide lets you try each idea in ten live demos, from RYB vs RGB wheels to sRGB vs OKLCH gradients.

  • 10 interactive demos
  • RYB vs RGB vs CMY wheels
  • Harmony mini-wheel
  • Simultaneous contrast illusion
  • Grayscale value check
  • 60-30-10 preview
  • sRGB vs OKLCH gradients

How to use the Color Theory Guide

  1. 1Pick a demo from the list. If you are new to color, start with Hue, saturation and value.
  2. 2Drag the sliders and wheels: every demo updates live, right in your browser.
  3. 3Compare the RYB, RGB and CMY wheels to see why complementary pairs differ between paint, screens and print.
  4. 4Check your own colors in the Value check and 60-30-10 demos before you commit to a palette.
  5. 5Read the guide on this page for the theory, then build a full palette with the color wheel.

What is color theory?

Color theory is the practical knowledge of how to use color: how colors are made (by mixing light or pigment), how they are organized (the color wheel and color models), how they interact (harmony and contrast), and how people tend to respond to them. It sits where physics, the biology of vision and design craft meet.

For designers and developers it answers everyday questions. Which accent goes with a brand blue? Why is this text hard to read? Why does a palette that looks balanced on screen print muddy? How do you build a dark mode that still feels like the brand?

A short history of the color wheel

  • Isaac Newton published Opticks in 1704. He bent the visible spectrum into a circle, joining red to violet, and divided it into seven colors. His diagram is usually credited as the first color circle, and the idea of hue as a loop has stayed with us ever since.
  • Johann Wolfgang von Goethe published Theory of Colours in 1810. He cared less about the physics of light than about how color is perceived and felt, and drew a symmetric wheel with complementary colors facing each other.
  • Johannes Itten, a teacher at the Bauhaus, developed the 12-part wheel still used in art schools: three primaries (red, yellow and blue), three secondaries and six tertiaries. His book The Art of Color (1961) also described seven kinds of color contrast.
  • In the 20th century color became measurable: Albert Munsell's system organized color by hue, value and chroma, and the CIE defined standard color spaces in 1931. OKLab and its polar form OKLCH, published by Björn Ottosson in 2020, bring that science to CSS.

What are primary, secondary and tertiary colors?

Primary colors are the ones you mix to make the others. Secondary colors are mixes of two primaries, and tertiary colors mix a primary with the secondary next to it. Which colors count as primary depends on what you are mixing:

ModelWhat mixesPrimariesSecondariesExample tertiaries
RYBPaint, in traditional art teachingRed, yellow, blueOrange, green, violetRed-orange, yellow-green, blue-violet
RGBLight (additive), on screensRed, green, blueCyan, magenta, yellowOrange, chartreuse, azure, rose
CMYInk (subtractive), in printCyan, magenta, yellowRed, green, blueOrange, violet, spring green

RGB and CMY are mirror images: each one's secondaries are the other's primaries. Add red and green light and you get yellow; overprint cyan and magenta ink and you get blue. Printers use cyan, magenta and yellow, plus black (the K, for "key", in CMYK), because those inks mix a wider range of colors than red, yellow and blue. RYB lives on in painting and art education, where it remains an intuitive way to think about mixing.

What are hue, saturation and value?

Every color can be described with three properties:

PropertyAlso calledIn CSSChange it to
HueColor familythe first value of hsl() and the last of oklch()Move between red, orange, blue and so on
SaturationChroma, intensity, puritythe second value of hsl() or oklch()Make a color calmer or more vivid
ValueLightness, brightnessthe third value of hsl(), the first of oklch()Make a color lighter or darker

Value does most of the work. Readability, hierarchy and depth all come from lightness differences, not from hue. A quick test is to view a design in grayscale: if the important things still stand out, the colors are doing their job.

Value is also where older color models mislead. In HSL, hsl(60 100% 50%) (yellow) and hsl(240 100% 50%) (blue) have the same "lightness", yet yellow's relative luminance is about 0.93 and blue's about 0.07. Perceptual models such as OKLCH fix this, so colors with the same lightness value really do look equally light.

What is a color harmony?

A color harmony is a combination chosen by its position on the color wheel: opposite hues are complementary, neighbors are analogous, and evenly spaced hues form triads and squares. Which partner colors you get depends on the wheel you use, and whether the result works depends on proportion, so let one color dominate and use the others to support and accent it. Try every harmony on the color wheel.

What are warm and cool colors?

Reds, oranges and yellows are called warm; greens, blues and violets are called cool. The names come from everyday associations (fire and sun, water and sky) rather than from physics, and painters have long used the contrast between them.

In design, warm colors tend to feel energetic and appear to come forward, while cool colors tend to feel calm and recede. Landscape painters use the same effect: distant hills look bluer and less saturated, so cool, muted colors read as further away.

Temperature is also relative. A red-violet looks cool next to orange and warm next to blue, and grays can lean warm or cool depending on a slight tint. Useful habits:

  • Use a warm accent for the one action you want people to notice on a cool, calm layout, or the reverse.
  • Tint neutrals slightly toward your brand hue so backgrounds and text feel related to it.
  • Keep the temperature of a palette consistent unless the contrast is deliberate.

How much color contrast does text need?

Contrast between text and its background is the most important accessibility rule for color. The Web Content Accessibility Guidelines (WCAG 2.2) measure it as a ratio from 1:1 (no contrast) to 21:1 (black on white):

ContentLevel AALevel AAA
Body text4.5:17:1
Large text (at least 18pt, or 14pt bold)3:14.5:1
Icons, input borders and other essential UI parts3:1No separate level

WCAG also says color must never be the only way information is shown. A red border on an invalid field needs an error message too, and a chart needs labels or patterns as well as colors. That matters because color vision deficiency affects roughly 1 in 12 men and 1 in 200 women of Northern European ancestry, most often as difficulty telling reds and greens apart.

Check pairs with the contrast checker, and see a whole palette through different eyes with the color blindness simulator.

What do colors mean? Color psychology and culture

Colors carry associations, but they are learned and cultural rather than universal laws, and research on color and behavior is mixed. Treat the meanings in this table as common associations to be aware of, not as rules:

ColorCommon associations in Western marketsA different association elsewhere
RedEnergy, urgency, danger, loveLuck and celebration in China
YellowOptimism, attention, cautionImperial yellow was reserved for the emperor in imperial China
GreenNature, growth, "go", successClosely associated with Islam
BlueTrust, calm, technologyProtection: blue evil-eye charms in Turkey and nearby regions
PurpleLuxury, creativityRoyalty in European history, when purple dye was rare and costly
WhitePurity, simplicity, weddingsMourning in parts of East Asia
BlackElegance, power, formalityMourning in many Western countries

Context usually beats symbolism. A red button means "delete" in one app and "buy now" in another, and people read it from the layout around it. If color meaning matters for a product, test it with the people who will use it.

How do you use color in UI design?

The 60-30-10 rule

A rule of thumb borrowed from interior design: about 60% of a design uses a dominant color (usually backgrounds and large surfaces), 30% a secondary color (navigation, cards, sections) and 10% an accent (buttons, links, highlights). It is not a formula, but it stops palettes from becoming noisy and keeps the accent meaningful.

Semantic colors

Most interfaces need colors that mean something: green for success, amber for warning, red for errors and blue for information. Keep them distinct from your brand accent, make each one pass contrast, and always pair them with an icon or text.

Dark mode

Dark mode is not inverted light mode. Many design systems use a very dark gray instead of pure black (Material Design 2's baseline dark surface is #121212), show elevation with lighter surfaces instead of shadows, and use slightly less saturated accents, because vivid colors look harsher on dark backgrounds. Recheck every contrast pair in both themes.

Build scales, not single colors

Each brand and semantic color needs a scale of tints and shades for hover, pressed, border and background states. Defining those scales in OKLCH gives evenly spaced lightness; Tailwind CSS v4 defines its default palette this way. Generate one with the Tailwind color generator.

RGB, CMYK, HSL or OKLCH: which color model should you use?

A color model is a way of writing a color down as numbers. Screens and print need different ones:

ModelWhat the numbers describeWhere it is usedWatch out for
RGB and HEXAmounts of red, green and blue lightScreens, CSS, imagesHard to adjust by hand
HSL and HSBHue, saturation and lightness or brightness of an RGB colorColor pickers, quick tweaksLightness is not perceptual
CMYKCyan, magenta, yellow and black inkPrintResults depend on paper, ink and press
LAB and LCHPerceptual lightness plus color (CIE)Color science, print proofingLCH blues drift toward purple as they lighten
OKLCHPerceptual lightness, chroma and hueModern CSS and design tokensEasy to pick colors outside the screen's gamut

Screens add light; printers subtract it. A screen starts black and adds red, green and blue light, while ink on white paper absorbs light, so a printed color can only be as bright as the paper. Many vivid screen colors, especially bright blues and greens, cannot be reproduced with standard CMYK inks and print duller. Design in RGB or OKLCH, convert to CMYK with your printer's ICC profile, and ask for a proof.

For CSS, oklch() has been supported in all major browsers since 2023. It is the most predictable way to write colors and build scales. Convert between every format with the color converter.

Frequently asked questions

It depends on what is being mixed. For light on screens they are red, green and blue. For printing inks they are cyan, magenta and yellow. In traditional painting and art education they are red, yellow and blue.
Isaac Newton is usually credited with the first color circle, published in his book Opticks in 1704, which bent the spectrum into a loop. Later wheels by Goethe (1810) and by Johannes Itten at the Bauhaus shaped how artists and designers use color today.
A rule of thumb for balancing a palette: about 60 percent of a design uses a dominant color, 30 percent a secondary color and 10 percent an accent. It comes from interior design and maps well to interfaces: backgrounds, then surfaces and navigation, then calls to action.
Hue is the color family, such as red or blue, and is its position on the color wheel. Saturation, or chroma, is how vivid the color is compared with gray. Value, or lightness, is how light or dark it is. Value contrast matters most for readability.
Colors with a clear relationship on the color wheel, such as complementary (opposite), analogous (neighbors) or triadic (evenly spaced) colors. Proportion and value contrast matter just as much: one dominant color, a supporting color and a small accent, with enough lightness difference to keep text readable.
The split is a design convention. Reds, oranges and yellows are called warm and greens, blues and violets cool because of their associations with fire, sun, water and sky. Temperature is also relative: the same purple can look warm next to blue and cool next to orange.
Screens mix light (RGB) while printers mix ink on paper (CMYK), which covers a smaller range of colors. Very bright blues and greens often fall outside what inks can reproduce, so they print duller. Ask your printer for their ICC profile and a proof.

Last updated by the Playxoft engineering team.

From the designers who built this tool

Want your site to look this polished?

Consistent color, crisp typography and fast pages are what make a site feel premium. We build accessible, high-converting websites with design systems that stay consistent everywhere. Send us your site and we will share honest recommendations, free.