#2d9f0f Color
Color Codes | |
---|---|
Hex Code | #2d9f0f |
RGB Code | rgb(45, 159, 15) |
HSL Code | hsl(108, 83%, 34%) |
#2d9f0f Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(45, 159, 15); }
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(108, 83%, 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 #2d9f0f
RGB Code | Hex Code | Preview |
---|---|---|
rgb(45, 159, 15, 10%) | #2d9f0f1a | |
rgb(45, 159, 15, 20%) | #2d9f0f33 | |
rgb(45, 159, 15, 40%) | #2d9f0f4C | |
rgb(45, 159, 15, 60%) | #2d9f0f99 | |
rgb(45, 159, 15, 80%) | #2d9f0fCC | |
rgb(45, 159, 15, 100%) | #2d9f0fFF |
Saturated and desaturated colors of #2d9f0f
HSL Code | Preview |
---|---|
hsl(108, 10%, 34%) | |
hsl(108, 20%, 34%) | |
hsl(108, 40%, 34%) | |
hsl(108, 60%, 34%) | |
hsl(108, 80%, 34%) | |
hsl(108, 100%, 34%) |
#2d9f0f Color Usage In CSS
body { color: #2d9f0f; } p { color: rgb(45, 159, 15); } header { border-bottom:1px solid #2d9f0f; }