#7c2f60 Color
Color Codes | |
---|---|
Hex Code | #7c2f60 |
RGB Code | rgb(124, 47, 96) |
HSL Code | hsl(322, 45%, 34%) |
#7c2f60 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(124, 47, 96); }
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(322, 45%, 34%); }
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 #7c2f60
RGB Code | Hex Code | Preview |
---|---|---|
rgb(124, 47, 96, 10%) | #7c2f601a | |
rgb(124, 47, 96, 20%) | #7c2f6033 | |
rgb(124, 47, 96, 40%) | #7c2f604C | |
rgb(124, 47, 96, 60%) | #7c2f6099 | |
rgb(124, 47, 96, 80%) | #7c2f60CC | |
rgb(124, 47, 96, 100%) | #7c2f60FF |
Saturated and desaturated colors of #7c2f60
HSL Code | Preview |
---|---|
hsl(322, 10%, 34%) | |
hsl(322, 20%, 34%) | |
hsl(322, 40%, 34%) | |
hsl(322, 60%, 34%) | |
hsl(322, 80%, 34%) | |
hsl(322, 100%, 34%) |
#7c2f60 Color Usage In CSS
body { color: #7c2f60; } p { color: rgb(124, 47, 96); } header { border-bottom:1px solid #7c2f60; }