#f0112d Color
Color Codes | |
---|---|
Hex Code | #f0112d |
RGB Code | rgb(240, 17, 45) |
HSL Code | hsl(352, 88%, 50%) |
#f0112d Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(240, 17, 45); }
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(352, 88%, 50%); }
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 #f0112d
RGB Code | Hex Code | Preview |
---|---|---|
rgb(240, 17, 45, 10%) | #f0112d1a | |
rgb(240, 17, 45, 20%) | #f0112d33 | |
rgb(240, 17, 45, 40%) | #f0112d4C | |
rgb(240, 17, 45, 60%) | #f0112d99 | |
rgb(240, 17, 45, 80%) | #f0112dCC | |
rgb(240, 17, 45, 100%) | #f0112dFF |
Saturated and desaturated colors of #f0112d
HSL Code | Preview |
---|---|
hsl(352, 10%, 50%) | |
hsl(352, 20%, 50%) | |
hsl(352, 40%, 50%) | |
hsl(352, 60%, 50%) | |
hsl(352, 80%, 50%) | |
hsl(352, 100%, 50%) |
#f0112d Color Usage In CSS
body { color: #f0112d; } p { color: rgb(240, 17, 45); } header { border-bottom:1px solid #f0112d; }