sl(0, 0%, 50%); color: #ffffff;">hsl (0, 0%, 50%)
hsl (0, 100%, 50%)
hsl (0, 80%, 50%)
hsl (0, 50%, 50%)
hsl (0, 20%, 50%)
hsl (0, 0%, 50%)
Brightness
Brightness indicates how bright you want to be, 0% means not bright (black), 50% is not bright and dark and 100% is completely bright (white).
hsl (0, 100%, 0%)
hsl (0, 100%, 20%)
hsl (0, 100%, 50%)
hsl (0, 100%, 80%)
hsl (0, 100%, 100%)
hsl (0, 100%, 0%)
hsl (0, 100%, 20%)
hsl (0, 100%, 50%)
hsl (0, 100%, 80%)
hsl (0, 100%, 100%)
For gray gamut, the saturation and color area are usually set to 0, brightness from 0% to 100% for darker / brighter shades.
hsl (0, 0%, 0%)
hsl (0, 0%, 25%)
hsl (0, 0%, 50%)
hsl (0, 0%, 70%)
hsl (0, 0%, 0%)
hsl (0, 0%, 25%)
hsl (0, 0%, 50%)
hsl (0, 0%, 70%)
RGBA value
RGBA color value is an RGB color extension, adding an alpha channel - determining the color transparency, with the formula:
rgba (red, green, blue, alpha)
Where the alpha parameter ranges from 0.0 (completely transparent) to 1.0 (opaque).
rgba (255, 99, 71, 0)
rgba (255, 99, 71, 0.4)
rgba (255, 99, 71, 0.8)
rgba (255, 99, 71, 1)
rgba (255, 99, 71, 0)
rgba (255, 99, 71, 0.4)
rgba (255, 99, 71, 0.8)
rgba (255, 99, 71, 1)
HSLA color value
The HSLA color value is an extension of HSL, which adds alpha channels - determining the color transparency, with the formula:
hsl (hue, saturation, lightness, alpha)
Where the alpha parameter ranges from 0.0 (completely transparent) to 1.0 (opaque).
hsl (9, 100%, 64%, 0)
hsl (9, 100%, 64%, 0.4)
hsl (9, 100%, 64%, 0.8)
hsl (9, 100%, 64%, 1)
hsl (9, 100%, 64%, 0)
hsl (9, 100%, 64%, 0.4)
hsl (9, 100%, 64%, 0.8)
hsl (9, 100%, 64%, 1)
Previous post: Comment tags in HTML
Lesson: Style for HTML with CSS