Random Color Generator

#2a7116 Color

Color Codes
Hex Code #2a7116
RGB Code rgb(42, 113, 22)
HSL Code hsl(107, 67%, 26%)

#2a7116 Color Syntax

rgb()

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

 main {
    background-color: rgb(42, 113, 22);
   }

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(107, 67%, 26%);
  }

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

RGB Code Hex Code Preview
rgb(42, 113, 22, 10%) #2a71161a  
rgb(42, 113, 22, 20%) #2a711633  
rgb(42, 113, 22, 40%) #2a71164C  
rgb(42, 113, 22, 60%) #2a711699  
rgb(42, 113, 22, 80%) #2a7116CC  
rgb(42, 113, 22, 100%) #2a7116FF  

Saturated and desaturated colors of #2a7116

HSL Code Preview
hsl(107, 10%, 26%)  
hsl(107, 20%, 26%)  
hsl(107, 40%, 26%)  
hsl(107, 60%, 26%)  
hsl(107, 80%, 26%)  
hsl(107, 100%, 26%)  

#2a7116 Color Usage In CSS

 body {
    color: #2a7116;
    }
 p {
    color: rgb(42, 113, 22);
    }
 header {
    border-bottom:1px solid #2a7116;
    }
Recent Random Colors