Sub topic 1
How we describe color: light, perception, and three properties
Color words like "bright," "dull," "deep," or "pastel" are vague. Two designers can point at the same swatch and disagree about which word fits. This chapter sets up a shared vocabulary of three properties (hue, saturation, and value) and explains why those three work well for describing color. Later chapters cover each property in detail. Here the goal is to see what they are, why they exist, and how they relate to the way screens produce color.
Prerequisites
This chapter assumes you have:
- Basic familiarity with a design or image-editing tool. You should have used a color picker or a fill color before.
- Awareness that screens mix red, green, and blue light.
- Comfort reading short code snippets. The one Python example here uses only the standard library.
You do not need color theory training. Terms are defined as they appear.
Color is light interpreted by a brain
Color is not a property that objects simply have. It comes from three things working together:
- A light source that emits a range of wavelengths.
- A surface or display that changes that light. A surface absorbs some wavelengths and reflects others. A display emits light directly.
- A viewer whose eyes and brain interpret what arrives.
The retina of a person with typical color vision has three kinds of cone cells. Each kind responds most strongly to a different part of the visible spectrum, roughly short (blue), medium (green), and long (red) wavelengths. Your brain compares how strongly the three kinds respond and builds the experience of a particular color from those comparisons.
Two consequences matter for design:
- Different light spectra can look identical. A screen produces yellow by lighting red and green pixels together. It never emits the single wavelength that a real yellow flower reflects. Your cones respond the same way to both, so you see yellow.
- Context changes what you see. The same gray square looks lighter on a dark background and darker on a light one. Ambient lighting, nearby colors, and display settings all shift the result.
Design work therefore deals with perception, not just numbers. A color value in a file is an instruction to a display. How it looks is decided by the display, the room, and the viewer.
Why screens need a compact description
A screen builds every color from three light sources per pixel: red, green, and blue. This is the RGB model, and it matches how screens are built. A pixel with all three at full strength looks white. A pixel with all three off looks black.
RGB is a good description for hardware and a poor one for people. Suppose you have the color rgb(200, 80, 40) and want it to feel calmer. Which number do you change? Lowering red makes it less red but also changes how light it is. Raising green and blue together makes it paler but also shifts which color family it sits in. The three RGB channels do not line up with the questions a designer asks.
Designers ask questions like these:
- What color family is this? Is it a red, a green, a purple?
- How vivid is it? Is it intense or grayed-down?
- How light or dark is it?
Those three questions are the basis of the three properties.
The three properties
| Property | The question it answers | Typical range in software | Example change |
|---|---|---|---|
| Hue | Which color family is this? | Angle, 0 to 360 degrees | Orange to yellow |
| Saturation | How pure or muted is it? | 0% to 100% | Vivid orange to dusty orange |
| Value | How light or dark is it? | 0% to 100% | Orange to dark brown-orange |
Hue is the family a color belongs to: red, orange, yellow, green, blue, purple, and the steps between them. Hue is what you usually mean when you ask "what color is it?" Chapters 2 and 3 cover it.
Saturation is how pure or intense a color is. A fully saturated color looks vivid. As saturation falls, the color moves toward gray while staying in the same hue family. At zero saturation no hue is visible at all.
Value is how light or dark a color is. Pale yellow and dark olive can sit in the same family, but their value differs a lot. In design, "value" often means lightness in general. Its exact numeric meaning depends on which color model you use, which chapter 7 covers.
You can change any one of the three while holding the other two fixed. That independence is why this description is useful: it separates the questions.
Seeing the three properties in numbers
Software can convert an RGB color into hue, saturation, and value. The following Python example uses the standard library and prints the three properties for a few colors. Python's colorsys module works with numbers from 0 to 1, so the code divides RGB by 255 and scales the results back to degrees and percentages.
import colorsys
def describe(r, g, b):
"""Print hue, saturation, and value for an RGB color (0 to 255 each)."""
h, s, v = colorsys.rgb_to_hsv(r / 255, g / 255, b / 255)
print(
f"rgb({r}, {g}, {b}) -> "
f"hue {round(h * 360)} deg, "
f"saturation {round(s * 100)}%, "
f"value {round(v * 100)}%"
)
describe(200, 80, 40) # a vivid orange-red
describe(100, 40, 20) # same hue and saturation, darker
describe(128, 128, 128) # a neutral grayRunning it prints:
rgb(200, 80, 40) -> hue 15 deg, saturation 80%, value 78%
rgb(100, 40, 20) -> hue 15 deg, saturation 80%, value 39%
rgb(128, 128, 128) -> hue 0 deg, saturation 0%, value 50%Compare the first two lines. Both RGB triples changed in all three channels, yet only value changed. Hue and saturation stayed the same. In RGB you would have to scale all three channels together to get that result, and nothing in the numbers shows it. In the hue, saturation, and value description it is a single change.
The gray shows an edge case. With saturation at 0%, hue has no visible effect, so the code reports 0 degrees by convention. A gray has no meaningful hue. Tools that let you edit hue on a gray color will appear to do nothing.
What each property is not
Beginners often mix these properties up. The most common confusions are:
- Saturation is not brightness. A color can be vivid and dark, such as deep crimson, or pale and dull, such as a washed-out beige. Saturation tells you about purity. Value tells you about lightness.
- Value is not hue. Brown is not a separate hue. It is mostly a dark, somewhat muted orange or yellow-orange. Changing value and saturation moves you from orange to brown without leaving the hue family.
- Black, white, and gray have no hue. They sit at the neutral end of the saturation range. Designers still use them constantly, often to give saturated colors room to stand out.
- The numbers depend on the model. "Value 78%" in one color model is not the same as "lightness 78%" in another. When you read a number, check which model produced it.
Where the three properties show up in practice
You meet these properties every time you use color in a tool:
- Color pickers usually have a hue slider and a square where you choose saturation and value or lightness. That layout exists because the three-property description matches how people think about color.
- Palettes are built by choosing a few hues, then adjusting saturation and value to create variants such as lighter backgrounds and darker text colors.
- Hierarchy depends largely on value differences. Darker, higher-contrast elements pull the eye first.
- Code often lets you write colors directly in hue, saturation, and lightness form, which makes related colors easy to derive.
The rest of the tutorial builds on this. First comes each property in turn, then the color wheel, then the models that organize the properties (HSV and HSL), and finally palettes, contrast, accessibility, and code.
Summary of the key ideas
- Color comes from light, a surface or display, and a viewer's perception. The number in a file is only an instruction to a display.
- RGB describes how a screen makes color. It does not match the questions designers ask.
- Hue, saturation, and value answer those questions: which family, how pure, and how light.
- The three can be changed independently. A change to one leaves the other two as they were.
- Neutral colors have no meaningful hue, and numeric value does not always match how light a color looks.
Exercise
A designer has the color rgb(100, 40, 20) and wants a version that is clearly the same color family and just as vivid, but lighter. Which of hue, saturation, and value should change, and which should stay fixed? Using the numbers in this chapter, what would a suitable result look like?
Show answer
Value should increase, while hue and saturation stay fixed. The color is in the same family as rgb(200, 80, 40), with hue 15 degrees and saturation 80%. Raising value from 39% to 78% gives that lighter version, which is rgb(200, 80, 40).
Exercise
You apply a hue shift of 120 degrees to a pure gray, rgb(128, 128, 128), and nothing changes. Why?
Show answer
A gray has saturation 0%, so it has no visible hue. Hue only matters when saturation is above zero. The reported hue of 0 degrees is just a convention, so shifting it changes nothing you can see.