#286b2e Color
Color Codes | |
---|---|
Hex Code | #286b2e |
RGB Code | rgb(40, 107, 46) |
HSL Code | hsl(125, 46%, 29%) |
#286b2e Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(40, 107, 46); }
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(125, 46%, 29%); }
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 #286b2e
RGB Code | Hex Code | Preview |
---|---|---|
rgb(40, 107, 46, 10%) | #286b2e1a | |
rgb(40, 107, 46, 20%) | #286b2e33 | |
rgb(40, 107, 46, 40%) | #286b2e4C | |
rgb(40, 107, 46, 60%) | #286b2e99 | |
rgb(40, 107, 46, 80%) | #286b2eCC | |
rgb(40, 107, 46, 100%) | #286b2eFF |
Saturated and desaturated colors of #286b2e
HSL Code | Preview |
---|---|
hsl(125, 10%, 29%) | |
hsl(125, 20%, 29%) | |
hsl(125, 40%, 29%) | |
hsl(125, 60%, 29%) | |
hsl(125, 80%, 29%) | |
hsl(125, 100%, 29%) |
#286b2e Color Usage In CSS
body { color: #286b2e; } p { color: rgb(40, 107, 46); } header { border-bottom:1px solid #286b2e; }