Random Color Generator

#ab56a6 Color

Color Codes
Hex Code #ab56a6
RGB Code rgb(171, 86, 166)
HSL Code hsl(304, 34%, 50%)

#ab56a6 Color Syntax

rgb()

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

 main {
    background-color: rgb(171, 86, 166);
   }

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(304, 34%, 50%);
  }

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

RGB Code Hex Code Preview
rgb(171, 86, 166, 10%) #ab56a61a  
rgb(171, 86, 166, 20%) #ab56a633  
rgb(171, 86, 166, 40%) #ab56a64C  
rgb(171, 86, 166, 60%) #ab56a699  
rgb(171, 86, 166, 80%) #ab56a6CC  
rgb(171, 86, 166, 100%) #ab56a6FF  

Saturated and desaturated colors of #ab56a6

HSL Code Preview
hsl(304, 10%, 50%)  
hsl(304, 20%, 50%)  
hsl(304, 40%, 50%)  
hsl(304, 60%, 50%)  
hsl(304, 80%, 50%)  
hsl(304, 100%, 50%)  

#ab56a6 Color Usage In CSS

 body {
    color: #ab56a6;
    }
 p {
    color: rgb(171, 86, 166);
    }
 header {
    border-bottom:1px solid #ab56a6;
    }
Recent Random Colors