Random Color Generator

#a296ef Color

Color Codes
Hex Code #a296ef
RGB Code rgb(162, 150, 239)
HSL Code hsl(248, 74%, 76%)

#a296ef Color Syntax

rgb()

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

 main {
    background-color: rgb(162, 150, 239);
   }

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(248, 74%, 76%);
  }

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

RGB Code Hex Code Preview
rgb(162, 150, 239, 10%) #a296ef1a  
rgb(162, 150, 239, 20%) #a296ef33  
rgb(162, 150, 239, 40%) #a296ef4C  
rgb(162, 150, 239, 60%) #a296ef99  
rgb(162, 150, 239, 80%) #a296efCC  
rgb(162, 150, 239, 100%) #a296efFF  

Saturated and desaturated colors of #a296ef

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

#a296ef Color Usage In CSS

 body {
    color: #a296ef;
    }
 p {
    color: rgb(162, 150, 239);
    }
 header {
    border-bottom:1px solid #a296ef;
    }
Recent Random Colors