#cf4dfc Color
Color Codes | |
---|---|
Hex Code | #cf4dfc |
RGB Code | rgb(207, 77, 252) |
HSL Code | hsl(285, 97%, 65%) |
#cf4dfc Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(207, 77, 252); }
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(285, 97%, 65%); }
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 #cf4dfc
RGB Code | Hex Code | Preview |
---|---|---|
rgb(207, 77, 252, 10%) | #cf4dfc1a | |
rgb(207, 77, 252, 20%) | #cf4dfc33 | |
rgb(207, 77, 252, 40%) | #cf4dfc4C | |
rgb(207, 77, 252, 60%) | #cf4dfc99 | |
rgb(207, 77, 252, 80%) | #cf4dfcCC | |
rgb(207, 77, 252, 100%) | #cf4dfcFF |
Saturated and desaturated colors of #cf4dfc
HSL Code | Preview |
---|---|
hsl(285, 10%, 65%) | |
hsl(285, 20%, 65%) | |
hsl(285, 40%, 65%) | |
hsl(285, 60%, 65%) | |
hsl(285, 80%, 65%) | |
hsl(285, 100%, 65%) |
#cf4dfc Color Usage In CSS
body { color: #cf4dfc; } p { color: rgb(207, 77, 252); } header { border-bottom:1px solid #cf4dfc; }