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:
- 0% luminance produces black. section 17.1
- Higher percentages make the color lighter. section 17.1
- 100% luminance produces white. section 17.1
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






