#ba2f15 Color
Color Codes | |
---|---|
Hex Code | #ba2f15 |
RGB Code | rgb(186, 47, 21) |
HSL Code | hsl(9, 80%, 41%) |
#ba2f15 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(186, 47, 21); }
R(red), G(green), B(blue) can be number between 0-255.
A parameter is a hex characters (0–9, A–F) and optional.
hsl()
hsl(hue saturation lightness); hsl(hue saturation lightness / alpha); div { background-color: hsl(9, 80%, 41%); }
Saturation value is a percentage value between 0% unsaturated and 100% fully saturated.
Lightness value is a percentage value between 100% is white and 0% is black.
Lighter and darker colors of #ba2f15
RGB Code | Hex Code | Preview |
---|---|---|
rgb(186, 47, 21, 10%) | #ba2f151a | |
rgb(186, 47, 21, 20%) | #ba2f1533 | |
rgb(186, 47, 21, 40%) | #ba2f154C | |
rgb(186, 47, 21, 60%) | #ba2f1599 | |
rgb(186, 47, 21, 80%) | #ba2f15CC | |
rgb(186, 47, 21, 100%) | #ba2f15FF |
Saturated and desaturated colors of #ba2f15
HSL Code | Preview |
---|---|
hsl(9, 10%, 41%) | |
hsl(9, 20%, 41%) | |
hsl(9, 40%, 41%) | |
hsl(9, 60%, 41%) | |
hsl(9, 80%, 41%) | |
hsl(9, 100%, 41%) |
#ba2f15 Color Usage In CSS
body { color: #ba2f15; } p { color: rgb(186, 47, 21); } header { border-bottom:1px solid #ba2f15; }