#c30f57 Color
Color Codes | |
---|---|
Hex Code | #c30f57 |
RGB Code | rgb(195, 15, 87) |
HSL Code | hsl(336, 86%, 41%) |
#c30f57 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(195, 15, 87); }
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(336, 86%, 41%); }
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 #c30f57
RGB Code | Hex Code | Preview |
---|---|---|
rgb(195, 15, 87, 10%) | #c30f571a | |
rgb(195, 15, 87, 20%) | #c30f5733 | |
rgb(195, 15, 87, 40%) | #c30f574C | |
rgb(195, 15, 87, 60%) | #c30f5799 | |
rgb(195, 15, 87, 80%) | #c30f57CC | |
rgb(195, 15, 87, 100%) | #c30f57FF |
Saturated and desaturated colors of #c30f57
HSL Code | Preview |
---|---|
hsl(336, 10%, 41%) | |
hsl(336, 20%, 41%) | |
hsl(336, 40%, 41%) | |
hsl(336, 60%, 41%) | |
hsl(336, 80%, 41%) | |
hsl(336, 100%, 41%) |
#c30f57 Color Usage In CSS
body { color: #c30f57; } p { color: rgb(195, 15, 87); } header { border-bottom:1px solid #c30f57; }