#122c1b Color
Color Codes | |
---|---|
Hex Code | #122c1b |
RGB Code | rgb(18, 44, 27) |
HSL Code | hsl(141, 42%, 12%) |
#122c1b Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(18, 44, 27); }
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(141, 42%, 12%); }
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 #122c1b
RGB Code | Hex Code | Preview |
---|---|---|
rgb(18, 44, 27, 10%) | #122c1b1a | |
rgb(18, 44, 27, 20%) | #122c1b33 | |
rgb(18, 44, 27, 40%) | #122c1b4C | |
rgb(18, 44, 27, 60%) | #122c1b99 | |
rgb(18, 44, 27, 80%) | #122c1bCC | |
rgb(18, 44, 27, 100%) | #122c1bFF |
Saturated and desaturated colors of #122c1b
HSL Code | Preview |
---|---|
hsl(141, 10%, 12%) | |
hsl(141, 20%, 12%) | |
hsl(141, 40%, 12%) | |
hsl(141, 60%, 12%) | |
hsl(141, 80%, 12%) | |
hsl(141, 100%, 12%) |
#122c1b Color Usage In CSS
body { color: #122c1b; } p { color: rgb(18, 44, 27); } header { border-bottom:1px solid #122c1b; }