71 terms, each with a short definition, links to related terms, and the tools and articles that go further. Where a number helps, the example is worked out by the site’s color engine.
Matches term names, other names and definitions as you type.
71 of 71 terms
No term matches. Try a shorter word, or browse the groups below.
Two words, two things
Chroma vs saturation
Both describe how colorful a color is. Chroma compares it with a white lit the same way; saturation compares it with its own brightness. The number HSL calls saturation is neither, as the two rows below show.
Under each swatch: its hex code, C for OKLCH chroma and S for HSL saturation.
OKLCH chroma in steps, at lightness 62% and hue 250°
In the first row only chroma changes: lightness and hue hold still while chroma climbs from 0 to 0.161. In the second row, HSL saturation is 100% in every swatch, yet OKLCH chroma runs from 0.044 to 0.211. A pastel and a vivid color can both be “fully saturated” in HSL; chroma tells them apart.
The words for what a color looks like. Several sound alike and mean different things.
Hue
Also calledhue angle, color wheel
The attribute that names a color as red, yellow, green, blue or a mix of two neighbours. It is given as an angle around a color wheel, 0° to 360°, but the same color has a different angle in HSL, LCH and OKLCH.
#D3AF37
Example#D3AF37 has hue 46° in HSL and 92° in OKLCH.
How light a color looks compared with a white in the same light, from black to white. OKLCH’s L and CIELAB’s L* are built to follow it; HSL’s L is not.
#FFFF00#0000FF
ExamplePure yellow and pure blue both have HSL lightness 50%. Their OKLCH lightness is 96.8% and 45.2%.
How much light an area seems to give off, on an open scale with no white to compare against. Lightness is brightness judged relative to white. Everyday design talk often uses the two words for the same thing.
How strongly a color’s hue shows. Unlike chroma and saturation, it grows with the light: the same red cloth looks more colorful in sunlight than at dusk.
Colorfulness judged against a white lit the same way. In OKLCH and LCH it is the distance from the gray axis: 0 is a gray, and the highest chroma a screen can show depends on the hue and the lightness.
#00BF34#00B5B5
ExampleAt OKLCH lightness 70%, sRGB reaches chroma 0.220 at hue 145° but only 0.119 at hue 195°.
Colorfulness judged against the color’s own brightness: how pure it looks for how light it is. HSL and HSV also have a number called saturation, but it is a ratio inside the RGB cube, so a pale pastel can score 100%.
#CCDDFF
Example#CCDDFF has HSL saturation 100% and OKLCH chroma 0.050: a pastel, not a vivid color.
Also calledvalue, Munsell value, HSV value, HSB brightness
Munsell’s name for lightness, from 0 for black to 10 for white. HSV and HSB use the word for the largest of the R, G and B channels, which is not a lightness at all.
#0000FF
Example#0000FF has HSV value 100% but OKLCH lightness 45.2%.
The light coming from a surface in a given direction, measured in candelas per square metre (cd/m², also called nits). It is physical, not perceived: twice the luminance does not look twice as light.
Luminance scaled so that black is 0 and white is 1, computed from linear sRGB as 0.2126 R + 0.7152 G + 0.0722 B. WCAG 2’s contrast ratio is built on it.
Two colors that match under one light and stop matching under another. Their spectra differ, but under the first light they excite the eye’s cones the same way.
The color a space or device treats as white, given as a chromaticity. sRGB and Display P3 use D65, average daylight. CSS’s lab() and lch() are defined against D50.
A light defined by how much power it has at each wavelength, so that colors can be computed under it. D65 stands for noon daylight and A for a tungsten bulb.
Also calledcolor constancy, Bradford transform, CAT
The eye’s adjustment to the color of the light, which keeps a white page looking white under warm or cool light. Color science models it with transforms such as Bradford, which CSS uses to move colors between D65 and D50.
How colors become numbers, and how numbers become colors again.
Color model
Also calledRGB, HSL, CMYK
A way of describing colors with numbers, such as RGB, HSL or CMYK, without saying which exact colors the numbers mean. Tying a model to primaries, a white point and a transfer function makes it a color space.
The standard RGB space of the web and of most screens: Rec. 709 primaries, a D65 white and a transfer curve close to gamma 2.2. A hex code such as #D3AF37 is an sRGB color.
A wider RGB space with DCI-P3 primaries, the D65 white and the sRGB transfer curve, shown by many recent phones and laptops. CSS writes it color(display-p3 r g b).
Values proportional to the amount of light, before a transfer curve is applied. Blending, mixing light and luminance belong in linear light; the values stored in sRGB are not linear.
#808080
ExampleMid gray #808080 stores 50%, but it gives 21.6% of white’s light.
The curve that converts between linear light and the values a space stores, loosely called gamma. sRGB’s curve is a short straight segment followed by a power of 2.4, close overall to gamma 2.2.
The CIE’s 1931 space, from which most others are defined. Y is luminance; X and Z carry the rest of the color. Conversions between spaces usually pass through it.
#D3AF37
Example#D3AF37 in CIE XYZ (D65): X 0.4289, Y 0.4479, Z 0.1000.
CIE L*a*b* (1976): lightness L* from 0 to 100, with a* running from green to red and b* from blue to yellow. It was built so that equal distances look equally different, and manages that only roughly.
#D3AF37
Example#D3AF37 in CIELAB (D65): L* 72.75, a* 0.95, b* 62.79.
A perceptual space published by Björn Ottosson in 2020, with lightness L and two opponent axes, a and b. It predicts lightness and hue more evenly than CIELAB, which suits gradients and palette steps.
OKLab in polar form: lightness, chroma and hue. Changing one leaves the others alone, which is why design systems use it to build palettes. CSS writes it oklch(L C h).
Hue, saturation and lightness: RGB rearranged into a cylinder, easy to adjust by hand. Its saturation and lightness are geometric rather than perceptual, so equal steps rarely look equal.
Also calledHSB, hue saturation value, hue saturation brightness
Hue, saturation and value, also called HSB: another cylinder made from RGB, used by many color pickers. Its value is the largest of the three RGB channels.
Cyan, magenta, yellow and black, the inks of four-color printing. A CMYK number means one exact color only with an ICC profile for the press and paper; conversions without a profile are approximations.
An sRGB color written as #RRGGBB: three bytes in hexadecimal, from 00 to FF, for red, green and blue. #RGB is a short form, and a fourth pair, #RRGGBBAA, adds alpha.
#D3AF37
Example#D3AF37 is red 211, green 175 and blue 55: D3, AF and 37 in hexadecimal.
A color’s opacity, from 0 (fully transparent) to 1 (opaque). A semi-transparent color looks different over every background, so its contrast can only be measured after blending it with what lies behind.
The quality of a space in which equal numeric distances look like equal differences everywhere. No space achieves it fully; OKLab and CIELAB come much closer than RGB, HSL or XYZ.
A number for how different two colors look. CIEDE2000 is the usual formula: a difference of about 1 is near the smallest most people notice side by side, and tolerances for a match depend on the industry.
Bringing a color that lies outside a target gamut inside it. Clipping each channel is quick but can shift the hue; CSS Color 4 instead lowers OKLCH chroma until the color fits, keeping lightness and hue.
How much two colors differ, measured the way accessibility standards measure it.
Contrast ratio
Also calledWCAG contrast, luminance contrast
WCAG 2’s measure of how far apart two colors are in relative luminance: (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter. It runs from 1:1, no difference, to 21:1, black on white.
Aa#9494943.03:1Aa#7676764.54:1Aa#5959597.00:1
ExampleThe lightest grays that reach each level on white: #949494 at 3.03:1, #767676 at 4.54:1 and #595959 at 7.00:1.
Also called1.4.3, 1.4.6, AA contrast, AAA contrast
WCAG success criterion 1.4.3: text needs a contrast ratio of at least 4.5:1 with its background, or 3:1 if it is large. Criterion 1.4.6, Contrast (Enhanced), asks for 7:1 and 4.5:1 at level AAA.
WCAG success criterion 1.4.11: the parts of controls and graphics needed to understand them, such as an input’s border or a chart’s lines, need 3:1 against the colors next to them.
WCAG success criterion 1.4.1: color must not be the only way information is shown. A field in error also needs a message or an icon, and a link inside a paragraph usually needs an underline.
Also calledAccessible Perceptual Contrast Algorithm, SAPC
The Accessible Perceptual Contrast Algorithm, by Andrew Somers: a contrast method that treats dark-on-light and light-on-dark differently and is read together with font size and weight. It reports Lc rather than a ratio. It is not part of WCAG 2, and WCAG 3’s contrast method has not been decided.
APCA’s result. Positive means dark text on a light background and negative means light on dark. APCA’s simplest guidance asks for at least Lc 75 for body text, Lc 60 for other content text and Lc 45 for large text.
Aa#767676Lc +71Aa#FFFFFFLc −77
Example#767676 on white is Lc +71; white on #767676 is Lc −77. Black on white reaches Lc +106.
Also calledfocus ring, focus outline, :focus-visible
The visible mark, usually an outline, that shows which element has keyboard focus. WCAG 2.4.7 requires one to be visible; 2.4.13, at level AAA, sets its size and asks for a 3:1 change between focused and unfocused states.
The way a color’s surroundings change how it looks: the same gray seems lighter on black than on white. Contrast formulas measure two colors on their own and ignore it.
How people see color, and how that differs from one person to another.
Cones
Also calledL M S cones, photoreceptors
The three kinds of light-sensitive cells in the retina that make color vision possible, called L, M and S for long, medium and short wavelengths. Color is the brain’s comparison of their signals.
Often called color blindness: one type of cone is missing or works differently, so some colors that differ for most people look alike. Red–green deficiencies are the most common, affecting about 1 in 12 men and 1 in 200 women of Northern European descent.
Also calledprotanomaly, deuteranomaly, tritanomaly
All three cone types are present but one is shifted, so the deficiency is milder: protanomaly, deuteranomaly or tritanomaly. Deuteranomaly is the most common color vision deficiency.
Recomputing colors to approximate how they look with a color vision deficiency. The site uses the model of Machado, Oliveira and Fernandes (2009) in linear light. A simulation is a design aid, not a picture of anyone’s experience.
Red and green, as typical vision sees them and as simulated for two deficiencies
Vision
Red
Green
ΔE00
Typical vision
#D7263D
#2E9E4F
72.4
Protanopia
#5F583C
#9F9048
24.3
Deuteranopia
#8A7D37
#928755
5.7
ExampleRed #D7263D and green #2E9E4F differ by ΔE00 72.4 for typical vision; simulated for protanopia, by 24.3, and for deuteranopia, by 5.7.
The vocabulary of WCAG and of the tools that test against it.
WCAG
Also calledWeb Content Accessibility Guidelines, WCAG 2.2
The Web Content Accessibility Guidelines from the W3C. WCAG 2.2, the current Recommendation, has 86 success criteria under four principles: perceivable, operable, understandable and robust.
WCAG’s three levels: A, the minimum; AA, the level most accessibility policies point to; and AAA, enhanced. A page conforms at a level when it meets every criterion at that level and below.
Accessibility Conformance Testing rules: test procedures for parts of WCAG, published by the W3C, each with test cases that say what a correct tool should report. They make results from different tools comparable.
A check that reports a failure where there is none, also called a false alarm. A false negative is the opposite: a real failure the check misses. Automated accessibility tools trade one against the other.
The name assistive technology announces for an element, such as a button’s text or an image’s alt text, worked out by the W3C’s Accessible Name and Description Computation.
Software or hardware people use to reach content in another way: screen readers, screen magnifiers, switch access, voice control and refreshable braille displays.
A CSS function that gives its first color in a light color scheme and its second in a dark one, such as light-dark(#1C1A16, #F2EFE8). It follows the color scheme in use, so the page needs color-scheme: light dark.
Also calledWindows contrast themes, high contrast mode
A mode, such as Windows contrast themes, in which the browser replaces a page’s colors with a small palette the reader chose. CSS detects it with @media (forced-colors: active) and can refer to that palette through system colors such as CanvasText.
A CSS function that returns white or black, whichever contrasts more with a given color. It picks only between those two and does not promise any WCAG level.
How a gradient or an animation finds the colors between two stops. CSS lets you choose the space, as in linear-gradient(in oklch, blue, yellow). Colors written as hex, rgb() or hsl() default to sRGB, which can pass through gray between distant hues.
A token named for its job rather than its value, such as color.danger or surface.raised. It points at a base token, so a theme can change the value without renaming anything.
A tint is a color mixed with white, a shade with black and a tone with gray. Design systems usually build these steps in OKLCH, so that each step changes lightness by a similar amount.