#d945d9 Color
Color Codes | |
---|---|
Hex Code | #d945d9 |
RGB Code | rgb(217, 69, 217) |
HSL Code | hsl(300, 66%, 56%) |
#d945d9 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(217, 69, 217); }
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(300, 66%, 56%); }
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 #d945d9
RGB Code | Hex Code | Preview |
---|---|---|
rgb(217, 69, 217, 10%) | #d945d91a | |
rgb(217, 69, 217, 20%) | #d945d933 | |
rgb(217, 69, 217, 40%) | #d945d94C | |
rgb(217, 69, 217, 60%) | #d945d999 | |
rgb(217, 69, 217, 80%) | #d945d9CC | |
rgb(217, 69, 217, 100%) | #d945d9FF |
Saturated and desaturated colors of #d945d9
HSL Code | Preview |
---|---|
hsl(300, 10%, 56%) | |
hsl(300, 20%, 56%) | |
hsl(300, 40%, 56%) | |
hsl(300, 60%, 56%) | |
hsl(300, 80%, 56%) | |
hsl(300, 100%, 56%) |
#d945d9 Color Usage In CSS
body { color: #d945d9; } p { color: rgb(217, 69, 217); } header { border-bottom:1px solid #d945d9; }