0
0
CSSmarkup~5 mins

HSL colors in CSS - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
AThe color is fully dark
BThe color is fully bright
CThe color is fully gray
DThe color is fully transparent
What hue value represents green in HSL?
A
B360°
C240°
D120°
Which lightness value in HSL gives pure white?
A100%
B50%
C0%
D75%
How would you write a CSS color for half-light blue using HSL?
Ahsl(0, 100%, 50%)
Bhsl(240, 100%, 50%)
Chsl(120, 100%, 50%)
Dhsl(240, 50%, 100%)
What happens if you set lightness to 0% in HSL?
AThe color becomes black
BThe color becomes white
CThe color becomes gray
DThe color becomes transparent
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.