#c6245b Color
Color Codes | |
---|---|
Hex Code | #c6245b |
RGB Code | rgb(198, 36, 91) |
HSL Code | hsl(340, 69%, 46%) |
#c6245b Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(198, 36, 91); }
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(340, 69%, 46%); }
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 #c6245b
RGB Code | Hex Code | Preview |
---|---|---|
rgb(198, 36, 91, 10%) | #c6245b1a | |
rgb(198, 36, 91, 20%) | #c6245b33 | |
rgb(198, 36, 91, 40%) | #c6245b4C | |
rgb(198, 36, 91, 60%) | #c6245b99 | |
rgb(198, 36, 91, 80%) | #c6245bCC | |
rgb(198, 36, 91, 100%) | #c6245bFF |
Saturated and desaturated colors of #c6245b
HSL Code | Preview |
---|---|
hsl(340, 10%, 46%) | |
hsl(340, 20%, 46%) | |
hsl(340, 40%, 46%) | |
hsl(340, 60%, 46%) | |
hsl(340, 80%, 46%) | |
hsl(340, 100%, 46%) |
#c6245b Color Usage In CSS
body { color: #c6245b; } p { color: rgb(198, 36, 91); } header { border-bottom:1px solid #c6245b; }