#c42842 Color
Color Codes | |
---|---|
Hex Code | #c42842 |
RGB Code | rgb(196, 40, 66) |
HSL Code | hsl(350, 66%, 46%) |
#c42842 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(196, 40, 66); }
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(350, 66%, 46%); }
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 #c42842
RGB Code | Hex Code | Preview |
---|---|---|
rgb(196, 40, 66, 10%) | #c428421a | |
rgb(196, 40, 66, 20%) | #c4284233 | |
rgb(196, 40, 66, 40%) | #c428424C | |
rgb(196, 40, 66, 60%) | #c4284299 | |
rgb(196, 40, 66, 80%) | #c42842CC | |
rgb(196, 40, 66, 100%) | #c42842FF |
Saturated and desaturated colors of #c42842
HSL Code | Preview |
---|---|
hsl(350, 10%, 46%) | |
hsl(350, 20%, 46%) | |
hsl(350, 40%, 46%) | |
hsl(350, 60%, 46%) | |
hsl(350, 80%, 46%) | |
hsl(350, 100%, 46%) |
#c42842 Color Usage In CSS
body { color: #c42842; } p { color: rgb(196, 40, 66); } header { border-bottom:1px solid #c42842; }