#9b3156 Color
Color Codes | |
---|---|
Hex Code | #9b3156 |
RGB Code | rgb(155, 49, 86) |
HSL Code | hsl(339, 52%, 40%) |
#9b3156 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(155, 49, 86); }
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(339, 52%, 40%); }
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 #9b3156
RGB Code | Hex Code | Preview |
---|---|---|
rgb(155, 49, 86, 10%) | #9b31561a | |
rgb(155, 49, 86, 20%) | #9b315633 | |
rgb(155, 49, 86, 40%) | #9b31564C | |
rgb(155, 49, 86, 60%) | #9b315699 | |
rgb(155, 49, 86, 80%) | #9b3156CC | |
rgb(155, 49, 86, 100%) | #9b3156FF |
Saturated and desaturated colors of #9b3156
HSL Code | Preview |
---|---|
hsl(339, 10%, 40%) | |
hsl(339, 20%, 40%) | |
hsl(339, 40%, 40%) | |
hsl(339, 60%, 40%) | |
hsl(339, 80%, 40%) | |
hsl(339, 100%, 40%) |
#9b3156 Color Usage In CSS
body { color: #9b3156; } p { color: rgb(155, 49, 86); } header { border-bottom:1px solid #9b3156; }