Random Color Generator

#ab8ceb Color

Color Codes
Hex Code #ab8ceb
RGB Code rgb(171, 140, 235)
HSL Code hsl(260, 70%, 74%)

#ab8ceb Color Syntax

rgb()

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

 main {
    background-color: rgb(171, 140, 235);
   }

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(260, 70%, 74%);
  }

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

RGB Code Hex Code Preview
rgb(171, 140, 235, 10%) #ab8ceb1a  
rgb(171, 140, 235, 20%) #ab8ceb33  
rgb(171, 140, 235, 40%) #ab8ceb4C  
rgb(171, 140, 235, 60%) #ab8ceb99  
rgb(171, 140, 235, 80%) #ab8cebCC  
rgb(171, 140, 235, 100%) #ab8cebFF  

Saturated and desaturated colors of #ab8ceb

HSL Code Preview
hsl(260, 10%, 74%)  
hsl(260, 20%, 74%)  
hsl(260, 40%, 74%)  
hsl(260, 60%, 74%)  
hsl(260, 80%, 74%)  
hsl(260, 100%, 74%)  

#ab8ceb Color Usage In CSS

 body {
    color: #ab8ceb;
    }
 p {
    color: rgb(171, 140, 235);
    }
 header {
    border-bottom:1px solid #ab8ceb;
    }
Recent Random Colors