#c42a95 Color
Color Codes | |
---|---|
Hex Code | #c42a95 |
RGB Code | rgb(196, 42, 149) |
HSL Code | hsl(318, 65%, 47%) |
#c42a95 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(196, 42, 149); }
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(318, 65%, 47%); }
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 #c42a95
RGB Code | Hex Code | Preview |
---|---|---|
rgb(196, 42, 149, 10%) | #c42a951a | |
rgb(196, 42, 149, 20%) | #c42a9533 | |
rgb(196, 42, 149, 40%) | #c42a954C | |
rgb(196, 42, 149, 60%) | #c42a9599 | |
rgb(196, 42, 149, 80%) | #c42a95CC | |
rgb(196, 42, 149, 100%) | #c42a95FF |
Saturated and desaturated colors of #c42a95
HSL Code | Preview |
---|---|
hsl(318, 10%, 47%) | |
hsl(318, 20%, 47%) | |
hsl(318, 40%, 47%) | |
hsl(318, 60%, 47%) | |
hsl(318, 80%, 47%) | |
hsl(318, 100%, 47%) |
#c42a95 Color Usage In CSS
body { color: #c42a95; } p { color: rgb(196, 42, 149); } header { border-bottom:1px solid #c42a95; }