#792d96 Color
Color Codes | |
---|---|
Hex Code | #792d96 |
RGB Code | rgb(121, 45, 150) |
HSL Code | hsl(283, 54%, 38%) |
#792d96 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(121, 45, 150); }
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(283, 54%, 38%); }
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 #792d96
RGB Code | Hex Code | Preview |
---|---|---|
rgb(121, 45, 150, 10%) | #792d961a | |
rgb(121, 45, 150, 20%) | #792d9633 | |
rgb(121, 45, 150, 40%) | #792d964C | |
rgb(121, 45, 150, 60%) | #792d9699 | |
rgb(121, 45, 150, 80%) | #792d96CC | |
rgb(121, 45, 150, 100%) | #792d96FF |
Saturated and desaturated colors of #792d96
HSL Code | Preview |
---|---|
hsl(283, 10%, 38%) | |
hsl(283, 20%, 38%) | |
hsl(283, 40%, 38%) | |
hsl(283, 60%, 38%) | |
hsl(283, 80%, 38%) | |
hsl(283, 100%, 38%) |
#792d96 Color Usage In CSS
body { color: #792d96; } p { color: rgb(121, 45, 150); } header { border-bottom:1px solid #792d96; }