#cc4fea Color
Color Codes | |
---|---|
Hex Code | #cc4fea |
RGB Code | rgb(204, 79, 234) |
HSL Code | hsl(288, 79%, 61%) |
#cc4fea Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(204, 79, 234); }
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(288, 79%, 61%); }
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 #cc4fea
RGB Code | Hex Code | Preview |
---|---|---|
rgb(204, 79, 234, 10%) | #cc4fea1a | |
rgb(204, 79, 234, 20%) | #cc4fea33 | |
rgb(204, 79, 234, 40%) | #cc4fea4C | |
rgb(204, 79, 234, 60%) | #cc4fea99 | |
rgb(204, 79, 234, 80%) | #cc4feaCC | |
rgb(204, 79, 234, 100%) | #cc4feaFF |
Saturated and desaturated colors of #cc4fea
HSL Code | Preview |
---|---|
hsl(288, 10%, 61%) | |
hsl(288, 20%, 61%) | |
hsl(288, 40%, 61%) | |
hsl(288, 60%, 61%) | |
hsl(288, 80%, 61%) | |
hsl(288, 100%, 61%) |
#cc4fea Color Usage In CSS
body { color: #cc4fea; } p { color: rgb(204, 79, 234); } header { border-bottom:1px solid #cc4fea; }