#cc25d5 Color
Color Codes | |
---|---|
Hex Code | #cc25d5 |
RGB Code | rgb(204, 37, 213) |
HSL Code | hsl(297, 70%, 49%) |
#cc25d5 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(204, 37, 213); }
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(297, 70%, 49%); }
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 #cc25d5
RGB Code | Hex Code | Preview |
---|---|---|
rgb(204, 37, 213, 10%) | #cc25d51a | |
rgb(204, 37, 213, 20%) | #cc25d533 | |
rgb(204, 37, 213, 40%) | #cc25d54C | |
rgb(204, 37, 213, 60%) | #cc25d599 | |
rgb(204, 37, 213, 80%) | #cc25d5CC | |
rgb(204, 37, 213, 100%) | #cc25d5FF |
Saturated and desaturated colors of #cc25d5
HSL Code | Preview |
---|---|
hsl(297, 10%, 49%) | |
hsl(297, 20%, 49%) | |
hsl(297, 40%, 49%) | |
hsl(297, 60%, 49%) | |
hsl(297, 80%, 49%) | |
hsl(297, 100%, 49%) |
#cc25d5 Color Usage In CSS
body { color: #cc25d5; } p { color: rgb(204, 37, 213); } header { border-bottom:1px solid #cc25d5; }