Random Color Generator

#aa12aa Color

Color Codes
Hex Code #aa12aa
RGB Code rgb(170, 18, 170)
HSL Code hsl(300, 81%, 37%)

#aa12aa Color Syntax

rgb()

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

 main {
    background-color: rgb(170, 18, 170);
   }

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(300, 81%, 37%);
  }

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

RGB Code Hex Code Preview
rgb(170, 18, 170, 10%) #aa12aa1a  
rgb(170, 18, 170, 20%) #aa12aa33  
rgb(170, 18, 170, 40%) #aa12aa4C  
rgb(170, 18, 170, 60%) #aa12aa99  
rgb(170, 18, 170, 80%) #aa12aaCC  
rgb(170, 18, 170, 100%) #aa12aaFF  

Saturated and desaturated colors of #aa12aa

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

#aa12aa Color Usage In CSS

 body {
    color: #aa12aa;
    }
 p {
    color: rgb(170, 18, 170);
    }
 header {
    border-bottom:1px solid #aa12aa;
    }
Recent Random Colors