#f02726 Color
Color Codes | |
---|---|
Hex Code | #f02726 |
RGB Code | rgb(240, 39, 38) |
HSL Code | hsl(0, 87%, 55%) |
#f02726 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(240, 39, 38); }
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(0, 87%, 55%); }
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 #f02726
RGB Code | Hex Code | Preview |
---|---|---|
rgb(240, 39, 38, 10%) | #f027261a | |
rgb(240, 39, 38, 20%) | #f0272633 | |
rgb(240, 39, 38, 40%) | #f027264C | |
rgb(240, 39, 38, 60%) | #f0272699 | |
rgb(240, 39, 38, 80%) | #f02726CC | |
rgb(240, 39, 38, 100%) | #f02726FF |
Saturated and desaturated colors of #f02726
HSL Code | Preview |
---|---|
hsl(0, 10%, 55%) | |
hsl(0, 20%, 55%) | |
hsl(0, 40%, 55%) | |
hsl(0, 60%, 55%) | |
hsl(0, 80%, 55%) | |
hsl(0, 100%, 55%) |
#f02726 Color Usage In CSS
body { color: #f02726; } p { color: rgb(240, 39, 38); } header { border-bottom:1px solid #f02726; }