Random Color Generator

#31cd2f Color

Color Codes
Hex Code #31cd2f
RGB Code rgb(49, 205, 47)
HSL Code hsl(119, 63%, 49%)

#31cd2f Color Syntax

rgb()

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

 main {
    background-color: rgb(49, 205, 47);
   }

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(119, 63%, 49%);
  }

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 #31cd2f

RGB Code Hex Code Preview
rgb(49, 205, 47, 10%) #31cd2f1a  
rgb(49, 205, 47, 20%) #31cd2f33  
rgb(49, 205, 47, 40%) #31cd2f4C  
rgb(49, 205, 47, 60%) #31cd2f99  
rgb(49, 205, 47, 80%) #31cd2fCC  
rgb(49, 205, 47, 100%) #31cd2fFF  

Saturated and desaturated colors of #31cd2f

HSL Code Preview
hsl(119, 10%, 49%)  
hsl(119, 20%, 49%)  
hsl(119, 40%, 49%)  
hsl(119, 60%, 49%)  
hsl(119, 80%, 49%)  
hsl(119, 100%, 49%)  

#31cd2f Color Usage In CSS

 body {
    color: #31cd2f;
    }
 p {
    color: rgb(49, 205, 47);
    }
 header {
    border-bottom:1px solid #31cd2f;
    }
Recent Random Colors