#c81cf8 Color
Color Codes | |
---|---|
Hex Code | #c81cf8 |
RGB Code | rgb(200, 28, 248) |
HSL Code | hsl(287, 94%, 54%) |
#c81cf8 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(200, 28, 248); }
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(287, 94%, 54%); }
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 #c81cf8
RGB Code | Hex Code | Preview |
---|---|---|
rgb(200, 28, 248, 10%) | #c81cf81a | |
rgb(200, 28, 248, 20%) | #c81cf833 | |
rgb(200, 28, 248, 40%) | #c81cf84C | |
rgb(200, 28, 248, 60%) | #c81cf899 | |
rgb(200, 28, 248, 80%) | #c81cf8CC | |
rgb(200, 28, 248, 100%) | #c81cf8FF |
Saturated and desaturated colors of #c81cf8
HSL Code | Preview |
---|---|
hsl(287, 10%, 54%) | |
hsl(287, 20%, 54%) | |
hsl(287, 40%, 54%) | |
hsl(287, 60%, 54%) | |
hsl(287, 80%, 54%) | |
hsl(287, 100%, 54%) |
#c81cf8 Color Usage In CSS
body { color: #c81cf8; } p { color: rgb(200, 28, 248); } header { border-bottom:1px solid #c81cf8; }