#f531cb Color
Color Codes | |
---|---|
Hex Code | #f531cb |
RGB Code | rgb(245, 49, 203) |
HSL Code | hsl(313, 91%, 58%) |
#f531cb Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(245, 49, 203); }
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(313, 91%, 58%); }
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 #f531cb
RGB Code | Hex Code | Preview |
---|---|---|
rgb(245, 49, 203, 10%) | #f531cb1a | |
rgb(245, 49, 203, 20%) | #f531cb33 | |
rgb(245, 49, 203, 40%) | #f531cb4C | |
rgb(245, 49, 203, 60%) | #f531cb99 | |
rgb(245, 49, 203, 80%) | #f531cbCC | |
rgb(245, 49, 203, 100%) | #f531cbFF |
Saturated and desaturated colors of #f531cb
HSL Code | Preview |
---|---|
hsl(313, 10%, 58%) | |
hsl(313, 20%, 58%) | |
hsl(313, 40%, 58%) | |
hsl(313, 60%, 58%) | |
hsl(313, 80%, 58%) | |
hsl(313, 100%, 58%) |
#f531cb Color Usage In CSS
body { color: #f531cb; } p { color: rgb(245, 49, 203); } header { border-bottom:1px solid #f531cb; }