#d42d9e Color
Color Codes | |
---|---|
Hex Code | #d42d9e |
RGB Code | rgb(212, 45, 158) |
HSL Code | hsl(319, 66%, 50%) |
#d42d9e Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(212, 45, 158); }
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(319, 66%, 50%); }
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 #d42d9e
RGB Code | Hex Code | Preview |
---|---|---|
rgb(212, 45, 158, 10%) | #d42d9e1a | |
rgb(212, 45, 158, 20%) | #d42d9e33 | |
rgb(212, 45, 158, 40%) | #d42d9e4C | |
rgb(212, 45, 158, 60%) | #d42d9e99 | |
rgb(212, 45, 158, 80%) | #d42d9eCC | |
rgb(212, 45, 158, 100%) | #d42d9eFF |
Saturated and desaturated colors of #d42d9e
HSL Code | Preview |
---|---|
hsl(319, 10%, 50%) | |
hsl(319, 20%, 50%) | |
hsl(319, 40%, 50%) | |
hsl(319, 60%, 50%) | |
hsl(319, 80%, 50%) | |
hsl(319, 100%, 50%) |
#d42d9e Color Usage In CSS
body { color: #d42d9e; } p { color: rgb(212, 45, 158); } header { border-bottom:1px solid #d42d9e; }