#c216cd Color
Color Codes | |
---|---|
Hex Code | #c216cd |
RGB Code | rgb(194, 22, 205) |
HSL Code | hsl(296, 81%, 45%) |
#c216cd Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(194, 22, 205); }
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(296, 81%, 45%); }
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 #c216cd
RGB Code | Hex Code | Preview |
---|---|---|
rgb(194, 22, 205, 10%) | #c216cd1a | |
rgb(194, 22, 205, 20%) | #c216cd33 | |
rgb(194, 22, 205, 40%) | #c216cd4C | |
rgb(194, 22, 205, 60%) | #c216cd99 | |
rgb(194, 22, 205, 80%) | #c216cdCC | |
rgb(194, 22, 205, 100%) | #c216cdFF |
Saturated and desaturated colors of #c216cd
HSL Code | Preview |
---|---|
hsl(296, 10%, 45%) | |
hsl(296, 20%, 45%) | |
hsl(296, 40%, 45%) | |
hsl(296, 60%, 45%) | |
hsl(296, 80%, 45%) | |
hsl(296, 100%, 45%) |
#c216cd Color Usage In CSS
body { color: #c216cd; } p { color: rgb(194, 22, 205); } header { border-bottom:1px solid #c216cd; }