Color formats in CSS2
- Hex format – #cccccc
- Shorthand hex format – #ccc
- rgb() format – rgb (red, green, blue)
- Named colors – white, red, blue, etc
New color formats in CSS3
- HSL – hsl(hue, saturation, lightness)
- CMYK – cmyk(cyan, magenta, yellow, black)
- HSLA – hsla(hue, saturation, lightness, alpha)
- RGBA – rgba(red, green, blue, alpha)
HSL
- HSL stands for Hue, Saturation, Lightness
- A format that is easier for humans to understand and manipulate
- HSLA – hsla(hue, saturation, lightness, alpha)
6 Responses
I didn’t know that we can use HSLA colors in CSS3, that’s a good news, a new way to make similar android apps and websites.
I love the rgba() – use it alot!
Yeah with the css3 we can made easily amazing design… without many images…
I also thought that we only can use the normal CMYK and RGB colorset. HSLA will help us a lot! Thumbs up
Hi,
Color gradient is also a nice thing added in css3.
Example:
background: linear-gradient(top left, #1f1, #fff, #11f);
Again CoursesWeb thanks for the example! You make a great point as well.