#aa040c Color
Color Codes | |
---|---|
Hex Code | #aa040c |
RGB Code | rgb(170, 04, 12) |
HSL Code | hsl(357, 95%, 34%) |
#aa040c Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(170, 04, 12); }
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(357, 95%, 34%); }
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 #aa040c
RGB Code | Hex Code | Preview |
---|---|---|
rgb(170, 04, 12, 10%) | #aa040c1a | |
rgb(170, 04, 12, 20%) | #aa040c33 | |
rgb(170, 04, 12, 40%) | #aa040c4C | |
rgb(170, 04, 12, 60%) | #aa040c99 | |
rgb(170, 04, 12, 80%) | #aa040cCC | |
rgb(170, 04, 12, 100%) | #aa040cFF |
Saturated and desaturated colors of #aa040c
HSL Code | Preview |
---|---|
hsl(357, 10%, 34%) | |
hsl(357, 20%, 34%) | |
hsl(357, 40%, 34%) | |
hsl(357, 60%, 34%) | |
hsl(357, 80%, 34%) | |
hsl(357, 100%, 34%) |
#aa040c Color Usage In CSS
body { color: #aa040c; } p { color: rgb(170, 04, 12); } header { border-bottom:1px solid #aa040c; }