Random Color Generator

#31f478 Color

Color Codes
Hex Code #31f478
RGB Code rgb(49, 244, 120)
HSL Code hsl(142, 90%, 57%)

#31f478 Color Syntax

rgb()

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

 main {
    background-color: rgb(49, 244, 120);
   }

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(142, 90%, 57%);
  }

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

RGB Code Hex Code Preview
rgb(49, 244, 120, 10%) #31f4781a  
rgb(49, 244, 120, 20%) #31f47833  
rgb(49, 244, 120, 40%) #31f4784C  
rgb(49, 244, 120, 60%) #31f47899  
rgb(49, 244, 120, 80%) #31f478CC  
rgb(49, 244, 120, 100%) #31f478FF  

Saturated and desaturated colors of #31f478

HSL Code Preview
hsl(142, 10%, 57%)  
hsl(142, 20%, 57%)  
hsl(142, 40%, 57%)  
hsl(142, 60%, 57%)  
hsl(142, 80%, 57%)  
hsl(142, 100%, 57%)  

#31f478 Color Usage In CSS

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