#28221c Color
Color Codes | |
---|---|
Hex Code | #28221c |
RGB Code | rgb(40, 34, 28) |
HSL Code | hsl(30, 18%, 13%) |
#28221c Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(40, 34, 28); }
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(30, 18%, 13%); }
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 #28221c
RGB Code | Hex Code | Preview |
---|---|---|
rgb(40, 34, 28, 10%) | #28221c1a | |
rgb(40, 34, 28, 20%) | #28221c33 | |
rgb(40, 34, 28, 40%) | #28221c4C | |
rgb(40, 34, 28, 60%) | #28221c99 | |
rgb(40, 34, 28, 80%) | #28221cCC | |
rgb(40, 34, 28, 100%) | #28221cFF |
Saturated and desaturated colors of #28221c
HSL Code | Preview |
---|---|
hsl(30, 10%, 13%) | |
hsl(30, 20%, 13%) | |
hsl(30, 40%, 13%) | |
hsl(30, 60%, 13%) | |
hsl(30, 80%, 13%) | |
hsl(30, 100%, 13%) |
#28221c Color Usage In CSS
body { color: #28221c; } p { color: rgb(40, 34, 28); } header { border-bottom:1px solid #28221c; }