Random Color Generator

#2ab537 Color

Color Codes
Hex Code #2ab537
RGB Code rgb(42, 181, 55)
HSL Code hsl(126, 62%, 44%)

#2ab537 Color Syntax

rgb()

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

 main {
    background-color: rgb(42, 181, 55);
   }

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(126, 62%, 44%);
  }

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

RGB Code Hex Code Preview
rgb(42, 181, 55, 10%) #2ab5371a  
rgb(42, 181, 55, 20%) #2ab53733  
rgb(42, 181, 55, 40%) #2ab5374C  
rgb(42, 181, 55, 60%) #2ab53799  
rgb(42, 181, 55, 80%) #2ab537CC  
rgb(42, 181, 55, 100%) #2ab537FF  

Saturated and desaturated colors of #2ab537

HSL Code Preview
hsl(126, 10%, 44%)  
hsl(126, 20%, 44%)  
hsl(126, 40%, 44%)  
hsl(126, 60%, 44%)  
hsl(126, 80%, 44%)  
hsl(126, 100%, 44%)  

#2ab537 Color Usage In CSS

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