#7e0a1b Color
Color Codes | |
---|---|
Hex Code | #7e0a1b |
RGB Code | rgb(126, 10, 27) |
HSL Code | hsl(351, 85%, 27%) |
#7e0a1b Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(126, 10, 27); }
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(351, 85%, 27%); }
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 #7e0a1b
RGB Code | Hex Code | Preview |
---|---|---|
rgb(126, 10, 27, 10%) | #7e0a1b1a | |
rgb(126, 10, 27, 20%) | #7e0a1b33 | |
rgb(126, 10, 27, 40%) | #7e0a1b4C | |
rgb(126, 10, 27, 60%) | #7e0a1b99 | |
rgb(126, 10, 27, 80%) | #7e0a1bCC | |
rgb(126, 10, 27, 100%) | #7e0a1bFF |
Saturated and desaturated colors of #7e0a1b
HSL Code | Preview |
---|---|
hsl(351, 10%, 27%) | |
hsl(351, 20%, 27%) | |
hsl(351, 40%, 27%) | |
hsl(351, 60%, 27%) | |
hsl(351, 80%, 27%) | |
hsl(351, 100%, 27%) |
#7e0a1b Color Usage In CSS
body { color: #7e0a1b; } p { color: rgb(126, 10, 27); } header { border-bottom:1px solid #7e0a1b; }