#ec7c8a Color
Color Codes | |
---|---|
Hex Code | #ec7c8a |
RGB Code | rgb(236, 124, 138) |
HSL Code | hsl(353, 75%, 71%) |
#ec7c8a Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(236, 124, 138); }
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(353, 75%, 71%); }
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 #ec7c8a
RGB Code | Hex Code | Preview |
---|---|---|
rgb(236, 124, 138, 10%) | #ec7c8a1a | |
rgb(236, 124, 138, 20%) | #ec7c8a33 | |
rgb(236, 124, 138, 40%) | #ec7c8a4C | |
rgb(236, 124, 138, 60%) | #ec7c8a99 | |
rgb(236, 124, 138, 80%) | #ec7c8aCC | |
rgb(236, 124, 138, 100%) | #ec7c8aFF |
Saturated and desaturated colors of #ec7c8a
HSL Code | Preview |
---|---|
hsl(353, 10%, 71%) | |
hsl(353, 20%, 71%) | |
hsl(353, 40%, 71%) | |
hsl(353, 60%, 71%) | |
hsl(353, 80%, 71%) | |
hsl(353, 100%, 71%) |
#ec7c8a Color Usage In CSS
body { color: #ec7c8a; } p { color: rgb(236, 124, 138); } header { border-bottom:1px solid #ec7c8a; }