Learn CSS - Colors Cheatsheet - Codecademy
Learn CSS - Colors Cheatsheet - Codecademy
Colors
li {
color: khaki;
}
.transparent {
color: transparent;
}
https://www.codecademy.com/learn/learn-css/modules/learn-css-colors/cheatsheet 1/2
15/11/2023 18:32 Learn CSS: Colors Cheatsheet | Codecademy
CSS colors can be declared with the HSL color system .light-blue {
using hsl() syntax. This syntax contains three values:
background-color: hsl(200, 70%, 50%);
hue (the color value itself), saturation (intensity), and
lightness. }
Hue values range from 0 to 360 while saturation and
lightness values are represented as percentages.
Print Share
https://www.codecademy.com/learn/learn-css/modules/learn-css-colors/cheatsheet 2/2