#512b99 Color
Color Codes | |
---|---|
Hex Code | #512b99 |
RGB Code | rgb(81, 43, 153) |
HSL Code | hsl(261, 56%, 38%) |
#512b99 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(81, 43, 153); }
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(261, 56%, 38%); }
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 #512b99
RGB Code | Hex Code | Preview |
---|---|---|
rgb(81, 43, 153, 10%) | #512b991a | |
rgb(81, 43, 153, 20%) | #512b9933 | |
rgb(81, 43, 153, 40%) | #512b994C | |
rgb(81, 43, 153, 60%) | #512b9999 | |
rgb(81, 43, 153, 80%) | #512b99CC | |
rgb(81, 43, 153, 100%) | #512b99FF |
Saturated and desaturated colors of #512b99
HSL Code | Preview |
---|---|
hsl(261, 10%, 38%) | |
hsl(261, 20%, 38%) | |
hsl(261, 40%, 38%) | |
hsl(261, 60%, 38%) | |
hsl(261, 80%, 38%) | |
hsl(261, 100%, 38%) |
#512b99 Color Usage In CSS
body { color: #512b99; } p { color: rgb(81, 43, 153); } header { border-bottom:1px solid #512b99; }