#1f755a Color
Color Codes | |
---|---|
Hex Code | #1f755a |
RGB Code | rgb(31, 117, 90) |
HSL Code | hsl(161, 58%, 29%) |
#1f755a Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(31, 117, 90); }
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(161, 58%, 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 #1f755a
RGB Code | Hex Code | Preview |
---|---|---|
rgb(31, 117, 90, 10%) | #1f755a1a | |
rgb(31, 117, 90, 20%) | #1f755a33 | |
rgb(31, 117, 90, 40%) | #1f755a4C | |
rgb(31, 117, 90, 60%) | #1f755a99 | |
rgb(31, 117, 90, 80%) | #1f755aCC | |
rgb(31, 117, 90, 100%) | #1f755aFF |
Saturated and desaturated colors of #1f755a
HSL Code | Preview |
---|---|
hsl(161, 10%, 29%) | |
hsl(161, 20%, 29%) | |
hsl(161, 40%, 29%) | |
hsl(161, 60%, 29%) | |
hsl(161, 80%, 29%) | |
hsl(161, 100%, 29%) |
#1f755a Color Usage In CSS
body { color: #1f755a; } p { color: rgb(31, 117, 90); } header { border-bottom:1px solid #1f755a; }