Random Color Generator

#a6542a Color

Color Codes
Hex Code #a6542a
RGB Code rgb(166, 84, 42)
HSL Code hsl(20, 60%, 41%)

#a6542a Color Syntax

rgb()

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

 main {
    background-color: rgb(166, 84, 42);
   }

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(20, 60%, 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 #a6542a

RGB Code Hex Code Preview
rgb(166, 84, 42, 10%) #a6542a1a  
rgb(166, 84, 42, 20%) #a6542a33  
rgb(166, 84, 42, 40%) #a6542a4C  
rgb(166, 84, 42, 60%) #a6542a99  
rgb(166, 84, 42, 80%) #a6542aCC  
rgb(166, 84, 42, 100%) #a6542aFF  

Saturated and desaturated colors of #a6542a

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

#a6542a Color Usage In CSS

 body {
    color: #a6542a;
    }
 p {
    color: rgb(166, 84, 42);
    }
 header {
    border-bottom:1px solid #a6542a;
    }
Recent Random Colors