#f2317a Color
Color Codes | |
---|---|
Hex Code | #f2317a |
RGB Code | rgb(242, 49, 122) |
HSL Code | hsl(337, 88%, 57%) |
#f2317a Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(242, 49, 122); }
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(337, 88%, 57%); }
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 #f2317a
RGB Code | Hex Code | Preview |
---|---|---|
rgb(242, 49, 122, 10%) | #f2317a1a | |
rgb(242, 49, 122, 20%) | #f2317a33 | |
rgb(242, 49, 122, 40%) | #f2317a4C | |
rgb(242, 49, 122, 60%) | #f2317a99 | |
rgb(242, 49, 122, 80%) | #f2317aCC | |
rgb(242, 49, 122, 100%) | #f2317aFF |
Saturated and desaturated colors of #f2317a
HSL Code | Preview |
---|---|
hsl(337, 10%, 57%) | |
hsl(337, 20%, 57%) | |
hsl(337, 40%, 57%) | |
hsl(337, 60%, 57%) | |
hsl(337, 80%, 57%) | |
hsl(337, 100%, 57%) |
#f2317a Color Usage In CSS
body { color: #f2317a; } p { color: rgb(242, 49, 122); } header { border-bottom:1px solid #f2317a; }