#f8759d Color
Color Codes | |
---|---|
Hex Code | #f8759d |
RGB Code | rgb(248, 117, 157) |
HSL Code | hsl(342, 90%, 72%) |
#f8759d Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(248, 117, 157); }
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(342, 90%, 72%); }
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 #f8759d
RGB Code | Hex Code | Preview |
---|---|---|
rgb(248, 117, 157, 10%) | #f8759d1a | |
rgb(248, 117, 157, 20%) | #f8759d33 | |
rgb(248, 117, 157, 40%) | #f8759d4C | |
rgb(248, 117, 157, 60%) | #f8759d99 | |
rgb(248, 117, 157, 80%) | #f8759dCC | |
rgb(248, 117, 157, 100%) | #f8759dFF |
Saturated and desaturated colors of #f8759d
HSL Code | Preview |
---|---|
hsl(342, 10%, 72%) | |
hsl(342, 20%, 72%) | |
hsl(342, 40%, 72%) | |
hsl(342, 60%, 72%) | |
hsl(342, 80%, 72%) | |
hsl(342, 100%, 72%) |
#f8759d Color Usage In CSS
body { color: #f8759d; } p { color: rgb(248, 117, 157); } header { border-bottom:1px solid #f8759d; }