#986cb6 Color
Color Codes | |
---|---|
Hex Code | #986cb6 |
RGB Code | rgb(152, 108, 182) |
HSL Code | hsl(276, 34%, 57%) |
#986cb6 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(152, 108, 182); }
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(276, 34%, 57%); }
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 #986cb6
RGB Code | Hex Code | Preview |
---|---|---|
rgb(152, 108, 182, 10%) | #986cb61a | |
rgb(152, 108, 182, 20%) | #986cb633 | |
rgb(152, 108, 182, 40%) | #986cb64C | |
rgb(152, 108, 182, 60%) | #986cb699 | |
rgb(152, 108, 182, 80%) | #986cb6CC | |
rgb(152, 108, 182, 100%) | #986cb6FF |
Saturated and desaturated colors of #986cb6
HSL Code | Preview |
---|---|
hsl(276, 10%, 57%) | |
hsl(276, 20%, 57%) | |
hsl(276, 40%, 57%) | |
hsl(276, 60%, 57%) | |
hsl(276, 80%, 57%) | |
hsl(276, 100%, 57%) |
#986cb6 Color Usage In CSS
body { color: #986cb6; } p { color: rgb(152, 108, 182); } header { border-bottom:1px solid #986cb6; }