#284818 Color
Color Codes | |
---|---|
Hex Code | #284818 |
RGB Code | rgb(40, 72, 24) |
HSL Code | hsl(100, 50%, 19%) |
#284818 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(40, 72, 24); }
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(100, 50%, 19%); }
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 #284818
RGB Code | Hex Code | Preview |
---|---|---|
rgb(40, 72, 24, 10%) | #2848181a | |
rgb(40, 72, 24, 20%) | #28481833 | |
rgb(40, 72, 24, 40%) | #2848184C | |
rgb(40, 72, 24, 60%) | #28481899 | |
rgb(40, 72, 24, 80%) | #284818CC | |
rgb(40, 72, 24, 100%) | #284818FF |
Saturated and desaturated colors of #284818
HSL Code | Preview |
---|---|
hsl(100, 10%, 19%) | |
hsl(100, 20%, 19%) | |
hsl(100, 40%, 19%) | |
hsl(100, 60%, 19%) | |
hsl(100, 80%, 19%) | |
hsl(100, 100%, 19%) |
#284818 Color Usage In CSS
body { color: #284818; } p { color: rgb(40, 72, 24); } header { border-bottom:1px solid #284818; }