Random Color Generator

#338542 Color

Color Codes
Hex Code #338542
RGB Code rgb(51, 133, 66)
HSL Code hsl(131, 45%, 36%)

#338542 Color Syntax

rgb()

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

 main {
    background-color: rgb(51, 133, 66);
   }

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(131, 45%, 36%);
  }

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 #338542

RGB Code Hex Code Preview
rgb(51, 133, 66, 10%) #3385421a  
rgb(51, 133, 66, 20%) #33854233  
rgb(51, 133, 66, 40%) #3385424C  
rgb(51, 133, 66, 60%) #33854299  
rgb(51, 133, 66, 80%) #338542CC  
rgb(51, 133, 66, 100%) #338542FF  

Saturated and desaturated colors of #338542

HSL Code Preview
hsl(131, 10%, 36%)  
hsl(131, 20%, 36%)  
hsl(131, 40%, 36%)  
hsl(131, 60%, 36%)  
hsl(131, 80%, 36%)  
hsl(131, 100%, 36%)  

#338542 Color Usage In CSS

 body {
    color: #338542;
    }
 p {
    color: rgb(51, 133, 66);
    }
 header {
    border-bottom:1px solid #338542;
    }
Recent Random Colors