Random Color Generator

#a171af Color

Color Codes
Hex Code #a171af
RGB Code rgb(161, 113, 175)
HSL Code hsl(286, 28%, 56%)

#a171af Color Syntax

rgb()

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

 main {
    background-color: rgb(161, 113, 175);
   }

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(286, 28%, 56%);
  }

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

RGB Code Hex Code Preview
rgb(161, 113, 175, 10%) #a171af1a  
rgb(161, 113, 175, 20%) #a171af33  
rgb(161, 113, 175, 40%) #a171af4C  
rgb(161, 113, 175, 60%) #a171af99  
rgb(161, 113, 175, 80%) #a171afCC  
rgb(161, 113, 175, 100%) #a171afFF  

Saturated and desaturated colors of #a171af

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

#a171af Color Usage In CSS

 body {
    color: #a171af;
    }
 p {
    color: rgb(161, 113, 175);
    }
 header {
    border-bottom:1px solid #a171af;
    }
Recent Random Colors