Random Color Generator

#2f6955 Color

Color Codes
Hex Code #2f6955
RGB Code rgb(47, 105, 85)
HSL Code hsl(159, 38%, 30%)

#2f6955 Color Syntax

rgb()

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

 main {
    background-color: rgb(47, 105, 85);
   }

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(159, 38%, 30%);
  }

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 #2f6955

RGB Code Hex Code Preview
rgb(47, 105, 85, 10%) #2f69551a  
rgb(47, 105, 85, 20%) #2f695533  
rgb(47, 105, 85, 40%) #2f69554C  
rgb(47, 105, 85, 60%) #2f695599  
rgb(47, 105, 85, 80%) #2f6955CC  
rgb(47, 105, 85, 100%) #2f6955FF  

Saturated and desaturated colors of #2f6955

HSL Code Preview
hsl(159, 10%, 30%)  
hsl(159, 20%, 30%)  
hsl(159, 40%, 30%)  
hsl(159, 60%, 30%)  
hsl(159, 80%, 30%)  
hsl(159, 100%, 30%)  

#2f6955 Color Usage In CSS

 body {
    color: #2f6955;
    }
 p {
    color: rgb(47, 105, 85);
    }
 header {
    border-bottom:1px solid #2f6955;
    }
Recent Random Colors