#d81c7a Color
Color Codes | |
---|---|
Hex Code | #d81c7a |
RGB Code | rgb(216, 28, 122) |
HSL Code | hsl(330, 77%, 48%) |
#d81c7a Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(216, 28, 122); }
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(330, 77%, 48%); }
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 #d81c7a
RGB Code | Hex Code | Preview |
---|---|---|
rgb(216, 28, 122, 10%) | #d81c7a1a | |
rgb(216, 28, 122, 20%) | #d81c7a33 | |
rgb(216, 28, 122, 40%) | #d81c7a4C | |
rgb(216, 28, 122, 60%) | #d81c7a99 | |
rgb(216, 28, 122, 80%) | #d81c7aCC | |
rgb(216, 28, 122, 100%) | #d81c7aFF |
Saturated and desaturated colors of #d81c7a
HSL Code | Preview |
---|---|
hsl(330, 10%, 48%) | |
hsl(330, 20%, 48%) | |
hsl(330, 40%, 48%) | |
hsl(330, 60%, 48%) | |
hsl(330, 80%, 48%) | |
hsl(330, 100%, 48%) |
#d81c7a Color Usage In CSS
body { color: #d81c7a; } p { color: rgb(216, 28, 122); } header { border-bottom:1px solid #d81c7a; }