Random Color Generator

#2d771a Color

Color Codes
Hex Code #2d771a
RGB Code rgb(45, 119, 26)
HSL Code hsl(108, 64%, 28%)

#2d771a Color Syntax

rgb()

 rgb(Red, Green, Blue);
 rgba(Red, Green, Blue, Alpha);

 main {
    background-color: rgb(45, 119, 26);
   }

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, 64%, 28%);
  }

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 #2d771a

RGB Code Hex Code Preview
rgb(45, 119, 26, 10%) #2d771a1a  
rgb(45, 119, 26, 20%) #2d771a33  
rgb(45, 119, 26, 40%) #2d771a4C  
rgb(45, 119, 26, 60%) #2d771a99  
rgb(45, 119, 26, 80%) #2d771aCC  
rgb(45, 119, 26, 100%) #2d771aFF  

Saturated and desaturated colors of #2d771a

HSL Code Preview
hsl(108, 10%, 28%)  
hsl(108, 20%, 28%)  
hsl(108, 40%, 28%)  
hsl(108, 60%, 28%)  
hsl(108, 80%, 28%)  
hsl(108, 100%, 28%)  

#2d771a Color Usage In CSS

 body {
    color: #2d771a;
    }
 p {
    color: rgb(45, 119, 26);
    }
 header {
    border-bottom:1px solid #2d771a;
    }
Recent Random Colors