#7b4bcf Color
Color Codes | |
---|---|
Hex Code | #7b4bcf |
RGB Code | rgb(123, 75, 207) |
HSL Code | hsl(262, 58%, 55%) |
#7b4bcf Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(123, 75, 207); }
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(262, 58%, 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 #7b4bcf
RGB Code | Hex Code | Preview |
---|---|---|
rgb(123, 75, 207, 10%) | #7b4bcf1a | |
rgb(123, 75, 207, 20%) | #7b4bcf33 | |
rgb(123, 75, 207, 40%) | #7b4bcf4C | |
rgb(123, 75, 207, 60%) | #7b4bcf99 | |
rgb(123, 75, 207, 80%) | #7b4bcfCC | |
rgb(123, 75, 207, 100%) | #7b4bcfFF |
Saturated and desaturated colors of #7b4bcf
HSL Code | Preview |
---|---|
hsl(262, 10%, 55%) | |
hsl(262, 20%, 55%) | |
hsl(262, 40%, 55%) | |
hsl(262, 60%, 55%) | |
hsl(262, 80%, 55%) | |
hsl(262, 100%, 55%) |
#7b4bcf Color Usage In CSS
body { color: #7b4bcf; } p { color: rgb(123, 75, 207); } header { border-bottom:1px solid #7b4bcf; }