#9c246d Color
Color Codes | |
---|---|
Hex Code | #9c246d |
RGB Code | rgb(156, 36, 109) |
HSL Code | hsl(324, 63%, 38%) |
#9c246d Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(156, 36, 109); }
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(324, 63%, 38%); }
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 #9c246d
RGB Code | Hex Code | Preview |
---|---|---|
rgb(156, 36, 109, 10%) | #9c246d1a | |
rgb(156, 36, 109, 20%) | #9c246d33 | |
rgb(156, 36, 109, 40%) | #9c246d4C | |
rgb(156, 36, 109, 60%) | #9c246d99 | |
rgb(156, 36, 109, 80%) | #9c246dCC | |
rgb(156, 36, 109, 100%) | #9c246dFF |
Saturated and desaturated colors of #9c246d
HSL Code | Preview |
---|---|
hsl(324, 10%, 38%) | |
hsl(324, 20%, 38%) | |
hsl(324, 40%, 38%) | |
hsl(324, 60%, 38%) | |
hsl(324, 80%, 38%) | |
hsl(324, 100%, 38%) |
#9c246d Color Usage In CSS
body { color: #9c246d; } p { color: rgb(156, 36, 109); } header { border-bottom:1px solid #9c246d; }