#9772eb Color
Color Codes | |
---|---|
Hex Code | #9772eb |
RGB Code | rgb(151, 114, 235) |
HSL Code | hsl(258, 75%, 68%) |
#9772eb Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(151, 114, 235); }
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(258, 75%, 68%); }
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 #9772eb
RGB Code | Hex Code | Preview |
---|---|---|
rgb(151, 114, 235, 10%) | #9772eb1a | |
rgb(151, 114, 235, 20%) | #9772eb33 | |
rgb(151, 114, 235, 40%) | #9772eb4C | |
rgb(151, 114, 235, 60%) | #9772eb99 | |
rgb(151, 114, 235, 80%) | #9772ebCC | |
rgb(151, 114, 235, 100%) | #9772ebFF |
Saturated and desaturated colors of #9772eb
HSL Code | Preview |
---|---|
hsl(258, 10%, 68%) | |
hsl(258, 20%, 68%) | |
hsl(258, 40%, 68%) | |
hsl(258, 60%, 68%) | |
hsl(258, 80%, 68%) | |
hsl(258, 100%, 68%) |
#9772eb Color Usage In CSS
body { color: #9772eb; } p { color: rgb(151, 114, 235); } header { border-bottom:1px solid #9772eb; }