Random Color Generator

#5f9f31 Color

Color Codes
Hex Code #5f9f31
RGB Code rgb(95, 159, 49)
HSL Code hsl(95, 53%, 41%)

#5f9f31 Color Syntax

rgb()

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

 main {
    background-color: rgb(95, 159, 49);
   }

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(95, 53%, 41%);
  }

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

RGB Code Hex Code Preview
rgb(95, 159, 49, 10%) #5f9f311a  
rgb(95, 159, 49, 20%) #5f9f3133  
rgb(95, 159, 49, 40%) #5f9f314C  
rgb(95, 159, 49, 60%) #5f9f3199  
rgb(95, 159, 49, 80%) #5f9f31CC  
rgb(95, 159, 49, 100%) #5f9f31FF  

Saturated and desaturated colors of #5f9f31

HSL Code Preview
hsl(95, 10%, 41%)  
hsl(95, 20%, 41%)  
hsl(95, 40%, 41%)  
hsl(95, 60%, 41%)  
hsl(95, 80%, 41%)  
hsl(95, 100%, 41%)  

#5f9f31 Color Usage In CSS

 body {
    color: #5f9f31;
    }
 p {
    color: rgb(95, 159, 49);
    }
 header {
    border-bottom:1px solid #5f9f31;
    }
Recent Random Colors