#7c2292 Color
Color Codes | |
---|---|
Hex Code | #7c2292 |
RGB Code | rgb(124, 34, 146) |
HSL Code | hsl(288, 62%, 35%) |
#7c2292 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(124, 34, 146); }
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(288, 62%, 35%); }
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 #7c2292
RGB Code | Hex Code | Preview |
---|---|---|
rgb(124, 34, 146, 10%) | #7c22921a | |
rgb(124, 34, 146, 20%) | #7c229233 | |
rgb(124, 34, 146, 40%) | #7c22924C | |
rgb(124, 34, 146, 60%) | #7c229299 | |
rgb(124, 34, 146, 80%) | #7c2292CC | |
rgb(124, 34, 146, 100%) | #7c2292FF |
Saturated and desaturated colors of #7c2292
HSL Code | Preview |
---|---|
hsl(288, 10%, 35%) | |
hsl(288, 20%, 35%) | |
hsl(288, 40%, 35%) | |
hsl(288, 60%, 35%) | |
hsl(288, 80%, 35%) | |
hsl(288, 100%, 35%) |
#7c2292 Color Usage In CSS
body { color: #7c2292; } p { color: rgb(124, 34, 146); } header { border-bottom:1px solid #7c2292; }