#308728 Color
Color Codes | |
---|---|
Hex Code | #308728 |
RGB Code | rgb(48, 135, 40) |
HSL Code | hsl(115, 54%, 34%) |
#308728 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(48, 135, 40); }
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(115, 54%, 34%); }
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 #308728
RGB Code | Hex Code | Preview |
---|---|---|
rgb(48, 135, 40, 10%) | #3087281a | |
rgb(48, 135, 40, 20%) | #30872833 | |
rgb(48, 135, 40, 40%) | #3087284C | |
rgb(48, 135, 40, 60%) | #30872899 | |
rgb(48, 135, 40, 80%) | #308728CC | |
rgb(48, 135, 40, 100%) | #308728FF |
Saturated and desaturated colors of #308728
HSL Code | Preview |
---|---|
hsl(115, 10%, 34%) | |
hsl(115, 20%, 34%) | |
hsl(115, 40%, 34%) | |
hsl(115, 60%, 34%) | |
hsl(115, 80%, 34%) | |
hsl(115, 100%, 34%) |
#308728 Color Usage In CSS
body { color: #308728; } p { color: rgb(48, 135, 40); } header { border-bottom:1px solid #308728; }