#f00a7b Color
Color Codes | |
---|---|
Hex Code | #f00a7b |
RGB Code | rgb(240, 10, 123) |
HSL Code | hsl(331, 92%, 49%) |
#f00a7b Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(240, 10, 123); }
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(331, 92%, 49%); }
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 #f00a7b
RGB Code | Hex Code | Preview |
---|---|---|
rgb(240, 10, 123, 10%) | #f00a7b1a | |
rgb(240, 10, 123, 20%) | #f00a7b33 | |
rgb(240, 10, 123, 40%) | #f00a7b4C | |
rgb(240, 10, 123, 60%) | #f00a7b99 | |
rgb(240, 10, 123, 80%) | #f00a7bCC | |
rgb(240, 10, 123, 100%) | #f00a7bFF |
Saturated and desaturated colors of #f00a7b
HSL Code | Preview |
---|---|
hsl(331, 10%, 49%) | |
hsl(331, 20%, 49%) | |
hsl(331, 40%, 49%) | |
hsl(331, 60%, 49%) | |
hsl(331, 80%, 49%) | |
hsl(331, 100%, 49%) |
#f00a7b Color Usage In CSS
body { color: #f00a7b; } p { color: rgb(240, 10, 123); } header { border-bottom:1px solid #f00a7b; }