#d822d1 Color
Color Codes | |
---|---|
Hex Code | #d822d1 |
RGB Code | rgb(216, 34, 209) |
HSL Code | hsl(302, 73%, 49%) |
#d822d1 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(216, 34, 209); }
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(302, 73%, 49%); }
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 #d822d1
RGB Code | Hex Code | Preview |
---|---|---|
rgb(216, 34, 209, 10%) | #d822d11a | |
rgb(216, 34, 209, 20%) | #d822d133 | |
rgb(216, 34, 209, 40%) | #d822d14C | |
rgb(216, 34, 209, 60%) | #d822d199 | |
rgb(216, 34, 209, 80%) | #d822d1CC | |
rgb(216, 34, 209, 100%) | #d822d1FF |
Saturated and desaturated colors of #d822d1
HSL Code | Preview |
---|---|
hsl(302, 10%, 49%) | |
hsl(302, 20%, 49%) | |
hsl(302, 40%, 49%) | |
hsl(302, 60%, 49%) | |
hsl(302, 80%, 49%) | |
hsl(302, 100%, 49%) |
#d822d1 Color Usage In CSS
body { color: #d822d1; } p { color: rgb(216, 34, 209); } header { border-bottom:1px solid #d822d1; }