#ad1138 Color
Color Codes | |
---|---|
Hex Code | #ad1138 |
RGB Code | rgb(173, 17, 56) |
HSL Code | hsl(345, 82%, 37%) |
#ad1138 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(173, 17, 56); }
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(345, 82%, 37%); }
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 #ad1138
RGB Code | Hex Code | Preview |
---|---|---|
rgb(173, 17, 56, 10%) | #ad11381a | |
rgb(173, 17, 56, 20%) | #ad113833 | |
rgb(173, 17, 56, 40%) | #ad11384C | |
rgb(173, 17, 56, 60%) | #ad113899 | |
rgb(173, 17, 56, 80%) | #ad1138CC | |
rgb(173, 17, 56, 100%) | #ad1138FF |
Saturated and desaturated colors of #ad1138
HSL Code | Preview |
---|---|
hsl(345, 10%, 37%) | |
hsl(345, 20%, 37%) | |
hsl(345, 40%, 37%) | |
hsl(345, 60%, 37%) | |
hsl(345, 80%, 37%) | |
hsl(345, 100%, 37%) |
#ad1138 Color Usage In CSS
body { color: #ad1138; } p { color: rgb(173, 17, 56); } header { border-bottom:1px solid #ad1138; }