#f5049d Color
Color Codes | |
---|---|
Hex Code | #f5049d |
RGB Code | rgb(245, 04, 157) |
HSL Code | hsl(322, 97%, 49%) |
#f5049d Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(245, 04, 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(322, 97%, 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 #f5049d
RGB Code | Hex Code | Preview |
---|---|---|
rgb(245, 04, 157, 10%) | #f5049d1a | |
rgb(245, 04, 157, 20%) | #f5049d33 | |
rgb(245, 04, 157, 40%) | #f5049d4C | |
rgb(245, 04, 157, 60%) | #f5049d99 | |
rgb(245, 04, 157, 80%) | #f5049dCC | |
rgb(245, 04, 157, 100%) | #f5049dFF |
Saturated and desaturated colors of #f5049d
HSL Code | Preview |
---|---|
hsl(322, 10%, 49%) | |
hsl(322, 20%, 49%) | |
hsl(322, 40%, 49%) | |
hsl(322, 60%, 49%) | |
hsl(322, 80%, 49%) | |
hsl(322, 100%, 49%) |
#f5049d Color Usage In CSS
body { color: #f5049d; } p { color: rgb(245, 04, 157); } header { border-bottom:1px solid #f5049d; }