#cc3387 Color
Color Codes | |
---|---|
Hex Code | #cc3387 |
RGB Code | rgb(204, 51, 135) |
HSL Code | hsl(327, 60%, 50%) |
#cc3387 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(204, 51, 135); }
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(327, 60%, 50%); }
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 #cc3387
RGB Code | Hex Code | Preview |
---|---|---|
rgb(204, 51, 135, 10%) | #cc33871a | |
rgb(204, 51, 135, 20%) | #cc338733 | |
rgb(204, 51, 135, 40%) | #cc33874C | |
rgb(204, 51, 135, 60%) | #cc338799 | |
rgb(204, 51, 135, 80%) | #cc3387CC | |
rgb(204, 51, 135, 100%) | #cc3387FF |
Saturated and desaturated colors of #cc3387
HSL Code | Preview |
---|---|
hsl(327, 10%, 50%) | |
hsl(327, 20%, 50%) | |
hsl(327, 40%, 50%) | |
hsl(327, 60%, 50%) | |
hsl(327, 80%, 50%) | |
hsl(327, 100%, 50%) |
#cc3387 Color Usage In CSS
body { color: #cc3387; } p { color: rgb(204, 51, 135); } header { border-bottom:1px solid #cc3387; }