#c50cd5 Color
Color Codes | |
---|---|
Hex Code | #c50cd5 |
RGB Code | rgb(197, 12, 213) |
HSL Code | hsl(295, 89%, 44%) |
#c50cd5 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(197, 12, 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(295, 89%, 44%); }
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 #c50cd5
RGB Code | Hex Code | Preview |
---|---|---|
rgb(197, 12, 213, 10%) | #c50cd51a | |
rgb(197, 12, 213, 20%) | #c50cd533 | |
rgb(197, 12, 213, 40%) | #c50cd54C | |
rgb(197, 12, 213, 60%) | #c50cd599 | |
rgb(197, 12, 213, 80%) | #c50cd5CC | |
rgb(197, 12, 213, 100%) | #c50cd5FF |
Saturated and desaturated colors of #c50cd5
HSL Code | Preview |
---|---|
hsl(295, 10%, 44%) | |
hsl(295, 20%, 44%) | |
hsl(295, 40%, 44%) | |
hsl(295, 60%, 44%) | |
hsl(295, 80%, 44%) | |
hsl(295, 100%, 44%) |
#c50cd5 Color Usage In CSS
body { color: #c50cd5; } p { color: rgb(197, 12, 213); } header { border-bottom:1px solid #c50cd5; }