#c42cc9 Color
Color Codes | |
---|---|
Hex Code | #c42cc9 |
RGB Code | rgb(196, 44, 201) |
HSL Code | hsl(298, 64%, 48%) |
#c42cc9 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(196, 44, 201); }
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(298, 64%, 48%); }
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 #c42cc9
RGB Code | Hex Code | Preview |
---|---|---|
rgb(196, 44, 201, 10%) | #c42cc91a | |
rgb(196, 44, 201, 20%) | #c42cc933 | |
rgb(196, 44, 201, 40%) | #c42cc94C | |
rgb(196, 44, 201, 60%) | #c42cc999 | |
rgb(196, 44, 201, 80%) | #c42cc9CC | |
rgb(196, 44, 201, 100%) | #c42cc9FF |
Saturated and desaturated colors of #c42cc9
HSL Code | Preview |
---|---|
hsl(298, 10%, 48%) | |
hsl(298, 20%, 48%) | |
hsl(298, 40%, 48%) | |
hsl(298, 60%, 48%) | |
hsl(298, 80%, 48%) | |
hsl(298, 100%, 48%) |
#c42cc9 Color Usage In CSS
body { color: #c42cc9; } p { color: rgb(196, 44, 201); } header { border-bottom:1px solid #c42cc9; }