#ca7f9e Color
Color Codes | |
---|---|
Hex Code | #ca7f9e |
RGB Code | rgb(202, 127, 158) |
HSL Code | hsl(335, 41%, 65%) |
#ca7f9e Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(202, 127, 158); }
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(335, 41%, 65%); }
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 #ca7f9e
RGB Code | Hex Code | Preview |
---|---|---|
rgb(202, 127, 158, 10%) | #ca7f9e1a | |
rgb(202, 127, 158, 20%) | #ca7f9e33 | |
rgb(202, 127, 158, 40%) | #ca7f9e4C | |
rgb(202, 127, 158, 60%) | #ca7f9e99 | |
rgb(202, 127, 158, 80%) | #ca7f9eCC | |
rgb(202, 127, 158, 100%) | #ca7f9eFF |
Saturated and desaturated colors of #ca7f9e
HSL Code | Preview |
---|---|
hsl(335, 10%, 65%) | |
hsl(335, 20%, 65%) | |
hsl(335, 40%, 65%) | |
hsl(335, 60%, 65%) | |
hsl(335, 80%, 65%) | |
hsl(335, 100%, 65%) |
#ca7f9e Color Usage In CSS
body { color: #ca7f9e; } p { color: rgb(202, 127, 158); } header { border-bottom:1px solid #ca7f9e; }