Random Color Generator

#a8ab2c Color

Color Codes
Hex Code #a8ab2c
RGB Code rgb(168, 171, 44)
HSL Code hsl(61, 59%, 42%)

#a8ab2c Color Syntax

rgb()

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

 main {
    background-color: rgb(168, 171, 44);
   }

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(61, 59%, 42%);
  }

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

RGB Code Hex Code Preview
rgb(168, 171, 44, 10%) #a8ab2c1a  
rgb(168, 171, 44, 20%) #a8ab2c33  
rgb(168, 171, 44, 40%) #a8ab2c4C  
rgb(168, 171, 44, 60%) #a8ab2c99  
rgb(168, 171, 44, 80%) #a8ab2cCC  
rgb(168, 171, 44, 100%) #a8ab2cFF  

Saturated and desaturated colors of #a8ab2c

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

#a8ab2c Color Usage In CSS

 body {
    color: #a8ab2c;
    }
 p {
    color: rgb(168, 171, 44);
    }
 header {
    border-bottom:1px solid #a8ab2c;
    }
Recent Random Colors