#f014a2 Color
Color Codes | |
---|---|
Hex Code | #f014a2 |
RGB Code | rgb(240, 20, 162) |
HSL Code | hsl(321, 88%, 51%) |
#f014a2 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(240, 20, 162); }
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(321, 88%, 51%); }
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 #f014a2
RGB Code | Hex Code | Preview |
---|---|---|
rgb(240, 20, 162, 10%) | #f014a21a | |
rgb(240, 20, 162, 20%) | #f014a233 | |
rgb(240, 20, 162, 40%) | #f014a24C | |
rgb(240, 20, 162, 60%) | #f014a299 | |
rgb(240, 20, 162, 80%) | #f014a2CC | |
rgb(240, 20, 162, 100%) | #f014a2FF |
Saturated and desaturated colors of #f014a2
HSL Code | Preview |
---|---|
hsl(321, 10%, 51%) | |
hsl(321, 20%, 51%) | |
hsl(321, 40%, 51%) | |
hsl(321, 60%, 51%) | |
hsl(321, 80%, 51%) | |
hsl(321, 100%, 51%) |
#f014a2 Color Usage In CSS
body { color: #f014a2; } p { color: rgb(240, 20, 162); } header { border-bottom:1px solid #f014a2; }