#c8154a Color
Color Codes | |
---|---|
Hex Code | #c8154a |
RGB Code | rgb(200, 21, 74) |
HSL Code | hsl(342, 81%, 43%) |
#c8154a Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(200, 21, 74); }
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(342, 81%, 43%); }
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 #c8154a
RGB Code | Hex Code | Preview |
---|---|---|
rgb(200, 21, 74, 10%) | #c8154a1a | |
rgb(200, 21, 74, 20%) | #c8154a33 | |
rgb(200, 21, 74, 40%) | #c8154a4C | |
rgb(200, 21, 74, 60%) | #c8154a99 | |
rgb(200, 21, 74, 80%) | #c8154aCC | |
rgb(200, 21, 74, 100%) | #c8154aFF |
Saturated and desaturated colors of #c8154a
HSL Code | Preview |
---|---|
hsl(342, 10%, 43%) | |
hsl(342, 20%, 43%) | |
hsl(342, 40%, 43%) | |
hsl(342, 60%, 43%) | |
hsl(342, 80%, 43%) | |
hsl(342, 100%, 43%) |
#c8154a Color Usage In CSS
body { color: #c8154a; } p { color: rgb(200, 21, 74); } header { border-bottom:1px solid #c8154a; }