Random Color Generator

#a407a2 Color

Color Codes
Hex Code #a407a2
RGB Code rgb(164, 07, 162)
HSL Code hsl(301, 92%, 34%)

#a407a2 Color Syntax

rgb()

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

 main {
    background-color: rgb(164, 07, 162);
   }

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(301, 92%, 34%);
  }

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

RGB Code Hex Code Preview
rgb(164, 07, 162, 10%) #a407a21a  
rgb(164, 07, 162, 20%) #a407a233  
rgb(164, 07, 162, 40%) #a407a24C  
rgb(164, 07, 162, 60%) #a407a299  
rgb(164, 07, 162, 80%) #a407a2CC  
rgb(164, 07, 162, 100%) #a407a2FF  

Saturated and desaturated colors of #a407a2

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

#a407a2 Color Usage In CSS

 body {
    color: #a407a2;
    }
 p {
    color: rgb(164, 07, 162);
    }
 header {
    border-bottom:1px solid #a407a2;
    }
Recent Random Colors