Random Color Generator

#5af534 Color

Color Codes
Hex Code #5af534
RGB Code rgb(90, 245, 52)
HSL Code hsl(108, 91%, 58%)

#5af534 Color Syntax

rgb()

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

 main {
    background-color: rgb(90, 245, 52);
   }

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, 91%, 58%);
  }

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 #5af534

RGB Code Hex Code Preview
rgb(90, 245, 52, 10%) #5af5341a  
rgb(90, 245, 52, 20%) #5af53433  
rgb(90, 245, 52, 40%) #5af5344C  
rgb(90, 245, 52, 60%) #5af53499  
rgb(90, 245, 52, 80%) #5af534CC  
rgb(90, 245, 52, 100%) #5af534FF  

Saturated and desaturated colors of #5af534

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

#5af534 Color Usage In CSS

 body {
    color: #5af534;
    }
 p {
    color: rgb(90, 245, 52);
    }
 header {
    border-bottom:1px solid #5af534;
    }
Recent Random Colors