#c722e3 Color
Color Codes | |
---|---|
Hex Code | #c722e3 |
RGB Code | rgb(199, 34, 227) |
HSL Code | hsl(291, 78%, 51%) |
#c722e3 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(199, 34, 227); }
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(291, 78%, 51%); }
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 #c722e3
RGB Code | Hex Code | Preview |
---|---|---|
rgb(199, 34, 227, 10%) | #c722e31a | |
rgb(199, 34, 227, 20%) | #c722e333 | |
rgb(199, 34, 227, 40%) | #c722e34C | |
rgb(199, 34, 227, 60%) | #c722e399 | |
rgb(199, 34, 227, 80%) | #c722e3CC | |
rgb(199, 34, 227, 100%) | #c722e3FF |
Saturated and desaturated colors of #c722e3
HSL Code | Preview |
---|---|
hsl(291, 10%, 51%) | |
hsl(291, 20%, 51%) | |
hsl(291, 40%, 51%) | |
hsl(291, 60%, 51%) | |
hsl(291, 80%, 51%) | |
hsl(291, 100%, 51%) |
#c722e3 Color Usage In CSS
body { color: #c722e3; } p { color: rgb(199, 34, 227); } header { border-bottom:1px solid #c722e3; }