Random Color Generator

#a8a2ec Color

Color Codes
Hex Code #a8a2ec
RGB Code rgb(168, 162, 236)
HSL Code hsl(245, 66%, 78%)

#a8a2ec Color Syntax

rgb()

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

 main {
    background-color: rgb(168, 162, 236);
   }

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(245, 66%, 78%);
  }

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

RGB Code Hex Code Preview
rgb(168, 162, 236, 10%) #a8a2ec1a  
rgb(168, 162, 236, 20%) #a8a2ec33  
rgb(168, 162, 236, 40%) #a8a2ec4C  
rgb(168, 162, 236, 60%) #a8a2ec99  
rgb(168, 162, 236, 80%) #a8a2ecCC  
rgb(168, 162, 236, 100%) #a8a2ecFF  

Saturated and desaturated colors of #a8a2ec

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

#a8a2ec Color Usage In CSS

 body {
    color: #a8a2ec;
    }
 p {
    color: rgb(168, 162, 236);
    }
 header {
    border-bottom:1px solid #a8a2ec;
    }
Recent Random Colors