#ec1f10 Color
Color Codes | |
---|---|
Hex Code | #ec1f10 |
RGB Code | rgb(236, 31, 16) |
HSL Code | hsl(4, 87%, 49%) |
#ec1f10 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(236, 31, 16); }
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(4, 87%, 49%); }
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 #ec1f10
RGB Code | Hex Code | Preview |
---|---|---|
rgb(236, 31, 16, 10%) | #ec1f101a | |
rgb(236, 31, 16, 20%) | #ec1f1033 | |
rgb(236, 31, 16, 40%) | #ec1f104C | |
rgb(236, 31, 16, 60%) | #ec1f1099 | |
rgb(236, 31, 16, 80%) | #ec1f10CC | |
rgb(236, 31, 16, 100%) | #ec1f10FF |
Saturated and desaturated colors of #ec1f10
HSL Code | Preview |
---|---|
hsl(4, 10%, 49%) | |
hsl(4, 20%, 49%) | |
hsl(4, 40%, 49%) | |
hsl(4, 60%, 49%) | |
hsl(4, 80%, 49%) | |
hsl(4, 100%, 49%) |
#ec1f10 Color Usage In CSS
body { color: #ec1f10; } p { color: rgb(236, 31, 16); } header { border-bottom:1px solid #ec1f10; }