#51005f Color
Color Codes | |
---|---|
Hex Code | #51005f |
RGB Code | rgb(81, 00, 95) |
HSL Code | hsl(291, 100%, 19%) |
#51005f Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(81, 00, 95); }
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(291, 100%, 19%); }
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 #51005f
RGB Code | Hex Code | Preview |
---|---|---|
rgb(81, 00, 95, 10%) | #51005f1a | |
rgb(81, 00, 95, 20%) | #51005f33 | |
rgb(81, 00, 95, 40%) | #51005f4C | |
rgb(81, 00, 95, 60%) | #51005f99 | |
rgb(81, 00, 95, 80%) | #51005fCC | |
rgb(81, 00, 95, 100%) | #51005fFF |
Saturated and desaturated colors of #51005f
HSL Code | Preview |
---|---|
hsl(291, 10%, 19%) | |
hsl(291, 20%, 19%) | |
hsl(291, 40%, 19%) | |
hsl(291, 60%, 19%) | |
hsl(291, 80%, 19%) | |
hsl(291, 100%, 19%) |
#51005f Color Usage In CSS
body { color: #51005f; } p { color: rgb(81, 00, 95); } header { border-bottom:1px solid #51005f; }