Random Color Generator

#ab31cb Color

Color Codes
Hex Code #ab31cb
RGB Code rgb(171, 49, 203)
HSL Code hsl(288, 61%, 49%)

#ab31cb Color Syntax

rgb()

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

 main {
    background-color: rgb(171, 49, 203);
   }

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(288, 61%, 49%);
  }

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

RGB Code Hex Code Preview
rgb(171, 49, 203, 10%) #ab31cb1a  
rgb(171, 49, 203, 20%) #ab31cb33  
rgb(171, 49, 203, 40%) #ab31cb4C  
rgb(171, 49, 203, 60%) #ab31cb99  
rgb(171, 49, 203, 80%) #ab31cbCC  
rgb(171, 49, 203, 100%) #ab31cbFF  

Saturated and desaturated colors of #ab31cb

HSL Code Preview
hsl(288, 10%, 49%)  
hsl(288, 20%, 49%)  
hsl(288, 40%, 49%)  
hsl(288, 60%, 49%)  
hsl(288, 80%, 49%)  
hsl(288, 100%, 49%)  

#ab31cb Color Usage In CSS

 body {
    color: #ab31cb;
    }
 p {
    color: rgb(171, 49, 203);
    }
 header {
    border-bottom:1px solid #ab31cb;
    }
Recent Random Colors