#2fa6a2 Color
Color Codes | |
---|---|
Hex Code | #2fa6a2 |
RGB Code | rgb(47, 166, 162) |
HSL Code | hsl(178, 56%, 42%) |
#2fa6a2 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(47, 166, 162); }
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(178, 56%, 42%); }
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 #2fa6a2
RGB Code | Hex Code | Preview |
---|---|---|
rgb(47, 166, 162, 10%) | #2fa6a21a | |
rgb(47, 166, 162, 20%) | #2fa6a233 | |
rgb(47, 166, 162, 40%) | #2fa6a24C | |
rgb(47, 166, 162, 60%) | #2fa6a299 | |
rgb(47, 166, 162, 80%) | #2fa6a2CC | |
rgb(47, 166, 162, 100%) | #2fa6a2FF |
Saturated and desaturated colors of #2fa6a2
HSL Code | Preview |
---|---|
hsl(178, 10%, 42%) | |
hsl(178, 20%, 42%) | |
hsl(178, 40%, 42%) | |
hsl(178, 60%, 42%) | |
hsl(178, 80%, 42%) | |
hsl(178, 100%, 42%) |
#2fa6a2 Color Usage In CSS
body { color: #2fa6a2; } p { color: rgb(47, 166, 162); } header { border-bottom:1px solid #2fa6a2; }