#42161f Color
Color Codes | |
---|---|
Hex Code | #42161f |
RGB Code | rgb(66, 22, 31) |
HSL Code | hsl(348, 50%, 17%) |
#42161f Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(66, 22, 31); }
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(348, 50%, 17%); }
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 #42161f
RGB Code | Hex Code | Preview |
---|---|---|
rgb(66, 22, 31, 10%) | #42161f1a | |
rgb(66, 22, 31, 20%) | #42161f33 | |
rgb(66, 22, 31, 40%) | #42161f4C | |
rgb(66, 22, 31, 60%) | #42161f99 | |
rgb(66, 22, 31, 80%) | #42161fCC | |
rgb(66, 22, 31, 100%) | #42161fFF |
Saturated and desaturated colors of #42161f
HSL Code | Preview |
---|---|
hsl(348, 10%, 17%) | |
hsl(348, 20%, 17%) | |
hsl(348, 40%, 17%) | |
hsl(348, 60%, 17%) | |
hsl(348, 80%, 17%) | |
hsl(348, 100%, 17%) |
#42161f Color Usage In CSS
body { color: #42161f; } p { color: rgb(66, 22, 31); } header { border-bottom:1px solid #42161f; }