Random Color Generator

#aa1f91 Color

Color Codes
Hex Code #aa1f91
RGB Code rgb(170, 31, 145)
HSL Code hsl(311, 69%, 39%)

#aa1f91 Color Syntax

rgb()

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

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

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(311, 69%, 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 #aa1f91

RGB Code Hex Code Preview
rgb(170, 31, 145, 10%) #aa1f911a  
rgb(170, 31, 145, 20%) #aa1f9133  
rgb(170, 31, 145, 40%) #aa1f914C  
rgb(170, 31, 145, 60%) #aa1f9199  
rgb(170, 31, 145, 80%) #aa1f91CC  
rgb(170, 31, 145, 100%) #aa1f91FF  

Saturated and desaturated colors of #aa1f91

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

#aa1f91 Color Usage In CSS

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