Color in CSS
1. Built in Colors
h1 {
color:Thistle;
}
li {
color:steelblue;
}
Reference : http://colours.neilorangepeel.com/
2. Hexadecimal
# + 6 digit string(hexadecimal numbers from 0-F)
h1 {
color: #212353
}
li {
color: #FF4550
}
3.RGB
3 channels: Red, Green and Blue. Each ranges from 0-255
h1 {
color: rgb(0,43,222)
}
li{
color: rgb(111,34,2)
}
4.RGBA
Just like RGB, but with an alpha(transparency) channel, ranges from 0.0~1.0
h1 {
color: rgba(11,99,222,0.4)
}
li {
color: rgba(11,99,222,1)
}