#7c2868 Color
Color Codes | |
---|---|
Hex Code | #7c2868 |
RGB Code | rgb(124, 40, 104) |
HSL Code | hsl(314, 51%, 32%) |
#7c2868 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(124, 40, 104); }
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(314, 51%, 32%); }
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 #7c2868
RGB Code | Hex Code | Preview |
---|---|---|
rgb(124, 40, 104, 10%) | #7c28681a | |
rgb(124, 40, 104, 20%) | #7c286833 | |
rgb(124, 40, 104, 40%) | #7c28684C | |
rgb(124, 40, 104, 60%) | #7c286899 | |
rgb(124, 40, 104, 80%) | #7c2868CC | |
rgb(124, 40, 104, 100%) | #7c2868FF |
Saturated and desaturated colors of #7c2868
HSL Code | Preview |
---|---|
hsl(314, 10%, 32%) | |
hsl(314, 20%, 32%) | |
hsl(314, 40%, 32%) | |
hsl(314, 60%, 32%) | |
hsl(314, 80%, 32%) | |
hsl(314, 100%, 32%) |
#7c2868 Color Usage In CSS
body { color: #7c2868; } p { color: rgb(124, 40, 104); } header { border-bottom:1px solid #7c2868; }