#cf52ff Color
Color Codes | |
---|---|
Hex Code | #cf52ff |
RGB Code | rgb(207, 82, 255) |
HSL Code | hsl(283, 100%, 66%) |
#cf52ff Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(207, 82, 255); }
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(283, 100%, 66%); }
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 #cf52ff
RGB Code | Hex Code | Preview |
---|---|---|
rgb(207, 82, 255, 10%) | #cf52ff1a | |
rgb(207, 82, 255, 20%) | #cf52ff33 | |
rgb(207, 82, 255, 40%) | #cf52ff4C | |
rgb(207, 82, 255, 60%) | #cf52ff99 | |
rgb(207, 82, 255, 80%) | #cf52ffCC | |
rgb(207, 82, 255, 100%) | #cf52ffFF |
Saturated and desaturated colors of #cf52ff
HSL Code | Preview |
---|---|
hsl(283, 10%, 66%) | |
hsl(283, 20%, 66%) | |
hsl(283, 40%, 66%) | |
hsl(283, 60%, 66%) | |
hsl(283, 80%, 66%) | |
hsl(283, 100%, 66%) |
#cf52ff Color Usage In CSS
body { color: #cf52ff; } p { color: rgb(207, 82, 255); } header { border-bottom:1px solid #cf52ff; }