Random Color Generator

#ac045e Color

Color Codes
Hex Code #ac045e
RGB Code rgb(172, 04, 94)
HSL Code hsl(328, 95%, 35%)

#ac045e Color Syntax

rgb()

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

 main {
    background-color: rgb(172, 04, 94);
   }

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(328, 95%, 35%);
  }

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

RGB Code Hex Code Preview
rgb(172, 04, 94, 10%) #ac045e1a  
rgb(172, 04, 94, 20%) #ac045e33  
rgb(172, 04, 94, 40%) #ac045e4C  
rgb(172, 04, 94, 60%) #ac045e99  
rgb(172, 04, 94, 80%) #ac045eCC  
rgb(172, 04, 94, 100%) #ac045eFF  

Saturated and desaturated colors of #ac045e

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

#ac045e Color Usage In CSS

 body {
    color: #ac045e;
    }
 p {
    color: rgb(172, 04, 94);
    }
 header {
    border-bottom:1px solid #ac045e;
    }
Recent Random Colors