#f40f62 Color
Color Codes | |
---|---|
Hex Code | #f40f62 |
RGB Code | rgb(244, 15, 98) |
HSL Code | hsl(338, 91%, 51%) |
#f40f62 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(244, 15, 98); }
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(338, 91%, 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 #f40f62
RGB Code | Hex Code | Preview |
---|---|---|
rgb(244, 15, 98, 10%) | #f40f621a | |
rgb(244, 15, 98, 20%) | #f40f6233 | |
rgb(244, 15, 98, 40%) | #f40f624C | |
rgb(244, 15, 98, 60%) | #f40f6299 | |
rgb(244, 15, 98, 80%) | #f40f62CC | |
rgb(244, 15, 98, 100%) | #f40f62FF |
Saturated and desaturated colors of #f40f62
HSL Code | Preview |
---|---|
hsl(338, 10%, 51%) | |
hsl(338, 20%, 51%) | |
hsl(338, 40%, 51%) | |
hsl(338, 60%, 51%) | |
hsl(338, 80%, 51%) | |
hsl(338, 100%, 51%) |
#f40f62 Color Usage In CSS
body { color: #f40f62; } p { color: rgb(244, 15, 98); } header { border-bottom:1px solid #f40f62; }