Random Color Generator

#aa12b4 Color

Color Codes
Hex Code #aa12b4
RGB Code rgb(170, 18, 180)
HSL Code hsl(296, 82%, 39%)

#aa12b4 Color Syntax

rgb()

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

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

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(296, 82%, 39%);
  }

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

RGB Code Hex Code Preview
rgb(170, 18, 180, 10%) #aa12b41a  
rgb(170, 18, 180, 20%) #aa12b433  
rgb(170, 18, 180, 40%) #aa12b44C  
rgb(170, 18, 180, 60%) #aa12b499  
rgb(170, 18, 180, 80%) #aa12b4CC  
rgb(170, 18, 180, 100%) #aa12b4FF  

Saturated and desaturated colors of #aa12b4

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

#aa12b4 Color Usage In CSS

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