#7a1f14 Color
Color Codes | |
---|---|
Hex Code | #7a1f14 |
RGB Code | rgb(122, 31, 20) |
HSL Code | hsl(6, 72%, 28%) |
#7a1f14 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(122, 31, 20); }
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, 72%, 28%); }
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 #7a1f14
RGB Code | Hex Code | Preview |
---|---|---|
rgb(122, 31, 20, 10%) | #7a1f141a | |
rgb(122, 31, 20, 20%) | #7a1f1433 | |
rgb(122, 31, 20, 40%) | #7a1f144C | |
rgb(122, 31, 20, 60%) | #7a1f1499 | |
rgb(122, 31, 20, 80%) | #7a1f14CC | |
rgb(122, 31, 20, 100%) | #7a1f14FF |
Saturated and desaturated colors of #7a1f14
HSL Code | Preview |
---|---|
hsl(6, 10%, 28%) | |
hsl(6, 20%, 28%) | |
hsl(6, 40%, 28%) | |
hsl(6, 60%, 28%) | |
hsl(6, 80%, 28%) | |
hsl(6, 100%, 28%) |
#7a1f14 Color Usage In CSS
body { color: #7a1f14; } p { color: rgb(122, 31, 20); } header { border-bottom:1px solid #7a1f14; }