Random Color Generator

#a428a0 Color

Color Codes
Hex Code #a428a0
RGB Code rgb(164, 40, 160)
HSL Code hsl(302, 61%, 40%)

#a428a0 Color Syntax

rgb()

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

 main {
    background-color: rgb(164, 40, 160);
   }

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(302, 61%, 40%);
  }

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

RGB Code Hex Code Preview
rgb(164, 40, 160, 10%) #a428a01a  
rgb(164, 40, 160, 20%) #a428a033  
rgb(164, 40, 160, 40%) #a428a04C  
rgb(164, 40, 160, 60%) #a428a099  
rgb(164, 40, 160, 80%) #a428a0CC  
rgb(164, 40, 160, 100%) #a428a0FF  

Saturated and desaturated colors of #a428a0

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

#a428a0 Color Usage In CSS

 body {
    color: #a428a0;
    }
 p {
    color: rgb(164, 40, 160);
    }
 header {
    border-bottom:1px solid #a428a0;
    }
Recent Random Colors