Random Color Generator

#4ad228 Color

Color Codes
Hex Code #4ad228
RGB Code rgb(74, 210, 40)
HSL Code hsl(108, 68%, 49%)

#4ad228 Color Syntax

rgb()

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

 main {
    background-color: rgb(74, 210, 40);
   }

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, 68%, 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 #4ad228

RGB Code Hex Code Preview
rgb(74, 210, 40, 10%) #4ad2281a  
rgb(74, 210, 40, 20%) #4ad22833  
rgb(74, 210, 40, 40%) #4ad2284C  
rgb(74, 210, 40, 60%) #4ad22899  
rgb(74, 210, 40, 80%) #4ad228CC  
rgb(74, 210, 40, 100%) #4ad228FF  

Saturated and desaturated colors of #4ad228

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

#4ad228 Color Usage In CSS

 body {
    color: #4ad228;
    }
 p {
    color: rgb(74, 210, 40);
    }
 header {
    border-bottom:1px solid #4ad228;
    }
Recent Random Colors