#9b8ce7 Color
Color Codes | |
---|---|
Hex Code | #9b8ce7 |
RGB Code | rgb(155, 140, 231) |
HSL Code | hsl(250, 65%, 73%) |
#9b8ce7 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(155, 140, 231); }
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(250, 65%, 73%); }
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 #9b8ce7
RGB Code | Hex Code | Preview |
---|---|---|
rgb(155, 140, 231, 10%) | #9b8ce71a | |
rgb(155, 140, 231, 20%) | #9b8ce733 | |
rgb(155, 140, 231, 40%) | #9b8ce74C | |
rgb(155, 140, 231, 60%) | #9b8ce799 | |
rgb(155, 140, 231, 80%) | #9b8ce7CC | |
rgb(155, 140, 231, 100%) | #9b8ce7FF |
Saturated and desaturated colors of #9b8ce7
HSL Code | Preview |
---|---|
hsl(250, 10%, 73%) | |
hsl(250, 20%, 73%) | |
hsl(250, 40%, 73%) | |
hsl(250, 60%, 73%) | |
hsl(250, 80%, 73%) | |
hsl(250, 100%, 73%) |
#9b8ce7 Color Usage In CSS
body { color: #9b8ce7; } p { color: rgb(155, 140, 231); } header { border-bottom:1px solid #9b8ce7; }