#f04a36 Color
Color Codes | |
---|---|
Hex Code | #f04a36 |
RGB Code | rgb(240, 74, 54) |
HSL Code | hsl(6, 86%, 58%) |
#f04a36 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(240, 74, 54); }
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(6, 86%, 58%); }
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 #f04a36
RGB Code | Hex Code | Preview |
---|---|---|
rgb(240, 74, 54, 10%) | #f04a361a | |
rgb(240, 74, 54, 20%) | #f04a3633 | |
rgb(240, 74, 54, 40%) | #f04a364C | |
rgb(240, 74, 54, 60%) | #f04a3699 | |
rgb(240, 74, 54, 80%) | #f04a36CC | |
rgb(240, 74, 54, 100%) | #f04a36FF |
Saturated and desaturated colors of #f04a36
HSL Code | Preview |
---|---|
hsl(6, 10%, 58%) | |
hsl(6, 20%, 58%) | |
hsl(6, 40%, 58%) | |
hsl(6, 60%, 58%) | |
hsl(6, 80%, 58%) | |
hsl(6, 100%, 58%) |
#f04a36 Color Usage In CSS
body { color: #f04a36; } p { color: rgb(240, 74, 54); } header { border-bottom:1px solid #f04a36; }