Learn CSS - Colors Cheatsheet - Codecademy
Learn CSS - Colors Cheatsheet - Codecademy
Learn CSS - Colors Cheatsheet - Codecademy
Colors
.transparent {
color: transparent;
}
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.
https://www.codecademy.com/learn/learn-css/modules/learn-css-colors/cheatsheet 1/2
12/26/23, 11:01 AM Learn CSS: Colors Cheatsheet | Codecademy
.green {
color: rgb(0, 255, 0);
}
li {
color: khaki;
}
Print Share
https://www.codecademy.com/learn/learn-css/modules/learn-css-colors/cheatsheet 2/2