Random Color Generator

#2f6601 Color

Color Codes
Hex Code #2f6601
RGB Code rgb(47, 102, 01)
HSL Code hsl(93, 98%, 20%)

#2f6601 Color Syntax

rgb()

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

 main {
    background-color: rgb(47, 102, 01);
   }

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(93, 98%, 20%);
  }

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

RGB Code Hex Code Preview
rgb(47, 102, 01, 10%) #2f66011a  
rgb(47, 102, 01, 20%) #2f660133  
rgb(47, 102, 01, 40%) #2f66014C  
rgb(47, 102, 01, 60%) #2f660199  
rgb(47, 102, 01, 80%) #2f6601CC  
rgb(47, 102, 01, 100%) #2f6601FF  

Saturated and desaturated colors of #2f6601

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

#2f6601 Color Usage In CSS

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