liveBook · Manning

Brightness

As explained in Web Design Playground

A measure of the brightness of a color or light source as perceived or represented in a color model.

Brightness describes how light or dark a color appears. In the HSL color model, this part is called luminance, also known as lightness or luminosity. section 17.1

Think of luminance as a dimmer switch for a color:

Adjusting brightness in CSS

The hsl() function writes a color as hue, saturation, and luminance. For example, hsl(270, 100%, 50%) uses a purple hue at full saturation and medium brightness. Raise the final percentage to make it lighter or lower it to make it darker: hsl(270, 100%, 80%). section 17.6

Name Red Green Blue Color
Red 255 0 0
Green 0 255 0
Blue 0 0 255
Yellow 255 255 0
Magenta 255 0 255
Cyan 0 255 255
Black 0 0 0
Gray 128 128 128
White 255 255 255

Compare RGB values for black, gray, white, and blended colors to see how represented colors differ in brightness. section 17.1

How Web Design Playground covers it

How deep it goes
Defines luminance on a 0–100% scale and applies it in hsl(), without developing deeper color theory.
Examples
Uses black, white, gray, blended RGB colors, and purple hsl() values to illustrate brightness.
What it assumes
Assumes basic awareness of colors and CSS selectors while defining hue, saturation, and luminance directly.
What you can do after
Apply it via CSS hsl() by choosing a luminance percentage between 0 and 100.
How it connects
Connects luminance with hue, saturation, HSL, the color wheel, RGB, and CSS color functions.

Also explained in

Compare how 7 books explain brightness →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Web Design Playground. The section links point to the parts of the book it draws on.