Recall & Review
beginner
What does HSL stand for in CSS colors?
HSL stands for Hue, Saturation, and Lightness. It is a way to describe colors based on these three components.
Click to reveal answer
beginner
Explain the 'Hue' component in HSL colors.
Hue is the color type and is represented as a degree on the color wheel from 0 to 360. For example, 0° is red, 120° is green, and 240° is blue.
Click to reveal answer
beginner
What does 'Saturation' control in HSL colors?
Saturation controls the intensity or purity of the color. 0% means a gray color, and 100% means full color intensity.
Click to reveal answer
beginner
Describe the 'Lightness' value in HSL colors.
Lightness controls how light or dark the color is. 0% is black, 50% is the normal color, and 100% is white.
Click to reveal answer
beginner
How do you write a CSS rule using HSL to set a background color to a bright red?
You can write:
background-color: hsl(0, 100%, 50%); This means hue 0° (red), full saturation, and medium lightness.Click to reveal answer
In HSL, what does a saturation of 0% mean?
✗ Incorrect
Saturation at 0% means no color intensity, resulting in a shade of gray.
What hue value represents green in HSL?
✗ Incorrect
Hue 120° corresponds to green on the color wheel.
Which lightness value in HSL gives pure white?
✗ Incorrect
Lightness at 100% means the color is white.
How would you write a CSS color for half-light blue using HSL?
✗ Incorrect
Hue 240° is blue, 100% saturation is full color, and 50% lightness is normal brightness.
What happens if you set lightness to 0% in HSL?
✗ Incorrect
Lightness at 0% means the color is black regardless of hue or saturation.
Describe how the three parts of HSL (Hue, Saturation, Lightness) work together to create a color.
Think of mixing paint: color type, how strong it is, and how light or dark it looks.
You got /3 concepts.
Explain how you would change a color from bright red to a pale pink using HSL values.
Adjust saturation and lightness while keeping the hue the same.
You got /3 concepts.