#cf22cc Color
Color Codes | |
---|---|
Hex Code | #cf22cc |
RGB Code | rgb(207, 34, 204) |
HSL Code | hsl(301, 72%, 47%) |
#cf22cc Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(207, 34, 204); }
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(301, 72%, 47%); }
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 #cf22cc
RGB Code | Hex Code | Preview |
---|---|---|
rgb(207, 34, 204, 10%) | #cf22cc1a | |
rgb(207, 34, 204, 20%) | #cf22cc33 | |
rgb(207, 34, 204, 40%) | #cf22cc4C | |
rgb(207, 34, 204, 60%) | #cf22cc99 | |
rgb(207, 34, 204, 80%) | #cf22ccCC | |
rgb(207, 34, 204, 100%) | #cf22ccFF |
Saturated and desaturated colors of #cf22cc
HSL Code | Preview |
---|---|
hsl(301, 10%, 47%) | |
hsl(301, 20%, 47%) | |
hsl(301, 40%, 47%) | |
hsl(301, 60%, 47%) | |
hsl(301, 80%, 47%) | |
hsl(301, 100%, 47%) |
#cf22cc Color Usage In CSS
body { color: #cf22cc; } p { color: rgb(207, 34, 204); } header { border-bottom:1px solid #cf22cc; }