#9f7a98 Color
Color Codes | |
---|---|
Hex Code | #9f7a98 |
RGB Code | rgb(159, 122, 152) |
HSL Code | hsl(311, 16%, 55%) |
#9f7a98 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(159, 122, 152); }
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(311, 16%, 55%); }
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 #9f7a98
RGB Code | Hex Code | Preview |
---|---|---|
rgb(159, 122, 152, 10%) | #9f7a981a | |
rgb(159, 122, 152, 20%) | #9f7a9833 | |
rgb(159, 122, 152, 40%) | #9f7a984C | |
rgb(159, 122, 152, 60%) | #9f7a9899 | |
rgb(159, 122, 152, 80%) | #9f7a98CC | |
rgb(159, 122, 152, 100%) | #9f7a98FF |
Saturated and desaturated colors of #9f7a98
HSL Code | Preview |
---|---|
hsl(311, 10%, 55%) | |
hsl(311, 20%, 55%) | |
hsl(311, 40%, 55%) | |
hsl(311, 60%, 55%) | |
hsl(311, 80%, 55%) | |
hsl(311, 100%, 55%) |
#9f7a98 Color Usage In CSS
body { color: #9f7a98; } p { color: rgb(159, 122, 152); } header { border-bottom:1px solid #9f7a98; }