#7b5fec Color
Color Codes | |
---|---|
Hex Code | #7b5fec |
RGB Code | rgb(123, 95, 236) |
HSL Code | hsl(252, 79%, 65%) |
#7b5fec Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(123, 95, 236); }
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(252, 79%, 65%); }
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 #7b5fec
RGB Code | Hex Code | Preview |
---|---|---|
rgb(123, 95, 236, 10%) | #7b5fec1a | |
rgb(123, 95, 236, 20%) | #7b5fec33 | |
rgb(123, 95, 236, 40%) | #7b5fec4C | |
rgb(123, 95, 236, 60%) | #7b5fec99 | |
rgb(123, 95, 236, 80%) | #7b5fecCC | |
rgb(123, 95, 236, 100%) | #7b5fecFF |
Saturated and desaturated colors of #7b5fec
HSL Code | Preview |
---|---|
hsl(252, 10%, 65%) | |
hsl(252, 20%, 65%) | |
hsl(252, 40%, 65%) | |
hsl(252, 60%, 65%) | |
hsl(252, 80%, 65%) | |
hsl(252, 100%, 65%) |
#7b5fec Color Usage In CSS
body { color: #7b5fec; } p { color: rgb(123, 95, 236); } header { border-bottom:1px solid #7b5fec; }