HSL color
noun
say it: “AYCH-ESS-EL KUL-er” /ˌeɪtʃˌɛsˈɛl ˈkʌlər/
A color written with hsl(): a hue on the color wheel from 0 to 360, then saturation and lightness as percentages, so you get lighter or darker shades by changing one number.
What is an HSL color?
An HSL color is written with hsl(): a hue (a spot on the color wheel, from 0 to 360 degrees), then saturation (how strong the color is) and lightness (how close to black or white), both as percentages. Keep the hue and change the lightness, and you get lighter and darker shades of the same color.
.menu-title { color: hsl(14 77% 54%); } /* the taco truck's orange */
.menu-card { background: hsl(14 77% 92%); } /* the same orange, pale */
In a sentence
- “I kept the hue of my HSL color at 14 and raised the lightness to get a pale orange for the menu cards.”
Level: Apprentice · More CSS terms at this level
Updated