#8c2d51 Color
Color Codes | |
---|---|
Hex Code | #8c2d51 |
RGB Code | rgb(140, 45, 81) |
HSL Code | hsl(337, 51%, 36%) |
#8c2d51 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(140, 45, 81); }
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(337, 51%, 36%); }
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 #8c2d51
RGB Code | Hex Code | Preview |
---|---|---|
rgb(140, 45, 81, 10%) | #8c2d511a | |
rgb(140, 45, 81, 20%) | #8c2d5133 | |
rgb(140, 45, 81, 40%) | #8c2d514C | |
rgb(140, 45, 81, 60%) | #8c2d5199 | |
rgb(140, 45, 81, 80%) | #8c2d51CC | |
rgb(140, 45, 81, 100%) | #8c2d51FF |
Saturated and desaturated colors of #8c2d51
HSL Code | Preview |
---|---|
hsl(337, 10%, 36%) | |
hsl(337, 20%, 36%) | |
hsl(337, 40%, 36%) | |
hsl(337, 60%, 36%) | |
hsl(337, 80%, 36%) | |
hsl(337, 100%, 36%) |
#8c2d51 Color Usage In CSS
body { color: #8c2d51; } p { color: rgb(140, 45, 81); } header { border-bottom:1px solid #8c2d51; }