Random Color Generator

#9d8e4f Color

Color Codes
Hex Code #9d8e4f
RGB Code rgb(157, 142, 79)
HSL Code hsl(48, 33%, 46%)

#9d8e4f Color Syntax

rgb()

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

 main {
    background-color: rgb(157, 142, 79);
   }

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(48, 33%, 46%);
  }

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 #9d8e4f

RGB Code Hex Code Preview
rgb(157, 142, 79, 10%) #9d8e4f1a  
rgb(157, 142, 79, 20%) #9d8e4f33  
rgb(157, 142, 79, 40%) #9d8e4f4C  
rgb(157, 142, 79, 60%) #9d8e4f99  
rgb(157, 142, 79, 80%) #9d8e4fCC  
rgb(157, 142, 79, 100%) #9d8e4fFF  

Saturated and desaturated colors of #9d8e4f

HSL Code Preview
hsl(48, 10%, 46%)  
hsl(48, 20%, 46%)  
hsl(48, 40%, 46%)  
hsl(48, 60%, 46%)  
hsl(48, 80%, 46%)  
hsl(48, 100%, 46%)  

#9d8e4f Color Usage In CSS

 body {
    color: #9d8e4f;
    }
 p {
    color: rgb(157, 142, 79);
    }
 header {
    border-bottom:1px solid #9d8e4f;
    }
Recent Random Colors