#510878 Color
Color Codes | |
---|---|
Hex Code | #510878 |
RGB Code | rgb(81, 08, 120) |
HSL Code | hsl(279, 88%, 25%) |
#510878 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(81, 08, 120); }
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(279, 88%, 25%); }
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 #510878
RGB Code | Hex Code | Preview |
---|---|---|
rgb(81, 08, 120, 10%) | #5108781a | |
rgb(81, 08, 120, 20%) | #51087833 | |
rgb(81, 08, 120, 40%) | #5108784C | |
rgb(81, 08, 120, 60%) | #51087899 | |
rgb(81, 08, 120, 80%) | #510878CC | |
rgb(81, 08, 120, 100%) | #510878FF |
Saturated and desaturated colors of #510878
HSL Code | Preview |
---|---|
hsl(279, 10%, 25%) | |
hsl(279, 20%, 25%) | |
hsl(279, 40%, 25%) | |
hsl(279, 60%, 25%) | |
hsl(279, 80%, 25%) | |
hsl(279, 100%, 25%) |
#510878 Color Usage In CSS
body { color: #510878; } p { color: rgb(81, 08, 120); } header { border-bottom:1px solid #510878; }