#cd94ef Color
Color Codes | |
---|---|
Hex Code | #cd94ef |
RGB Code | rgb(205, 148, 239) |
HSL Code | hsl(278, 74%, 76%) |
#cd94ef Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(205, 148, 239); }
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(278, 74%, 76%); }
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 #cd94ef
RGB Code | Hex Code | Preview |
---|---|---|
rgb(205, 148, 239, 10%) | #cd94ef1a | |
rgb(205, 148, 239, 20%) | #cd94ef33 | |
rgb(205, 148, 239, 40%) | #cd94ef4C | |
rgb(205, 148, 239, 60%) | #cd94ef99 | |
rgb(205, 148, 239, 80%) | #cd94efCC | |
rgb(205, 148, 239, 100%) | #cd94efFF |
Saturated and desaturated colors of #cd94ef
HSL Code | Preview |
---|---|
hsl(278, 10%, 76%) | |
hsl(278, 20%, 76%) | |
hsl(278, 40%, 76%) | |
hsl(278, 60%, 76%) | |
hsl(278, 80%, 76%) | |
hsl(278, 100%, 76%) |
#cd94ef Color Usage In CSS
body { color: #cd94ef; } p { color: rgb(205, 148, 239); } header { border-bottom:1px solid #cd94ef; }