#7fa312 Color
Color Codes | |
---|---|
Hex Code | #7fa312 |
RGB Code | rgb(127, 163, 18) |
HSL Code | hsl(75, 80%, 35%) |
#7fa312 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(127, 163, 18); }
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(75, 80%, 35%); }
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 #7fa312
RGB Code | Hex Code | Preview |
---|---|---|
rgb(127, 163, 18, 10%) | #7fa3121a | |
rgb(127, 163, 18, 20%) | #7fa31233 | |
rgb(127, 163, 18, 40%) | #7fa3124C | |
rgb(127, 163, 18, 60%) | #7fa31299 | |
rgb(127, 163, 18, 80%) | #7fa312CC | |
rgb(127, 163, 18, 100%) | #7fa312FF |
Saturated and desaturated colors of #7fa312
HSL Code | Preview |
---|---|
hsl(75, 10%, 35%) | |
hsl(75, 20%, 35%) | |
hsl(75, 40%, 35%) | |
hsl(75, 60%, 35%) | |
hsl(75, 80%, 35%) | |
hsl(75, 100%, 35%) |
#7fa312 Color Usage In CSS
body { color: #7fa312; } p { color: rgb(127, 163, 18); } header { border-bottom:1px solid #7fa312; }