Random Color Generator

#871b99 Color

Color Codes
Hex Code #871b99
RGB Code rgb(135, 27, 153)
HSL Code hsl(291, 70%, 35%)

#871b99 Color Syntax

rgb()

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

 main {
    background-color: rgb(135, 27, 153);
   }

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(291, 70%, 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 #871b99

RGB Code Hex Code Preview
rgb(135, 27, 153, 10%) #871b991a  
rgb(135, 27, 153, 20%) #871b9933  
rgb(135, 27, 153, 40%) #871b994C  
rgb(135, 27, 153, 60%) #871b9999  
rgb(135, 27, 153, 80%) #871b99CC  
rgb(135, 27, 153, 100%) #871b99FF  

Saturated and desaturated colors of #871b99

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

#871b99 Color Usage In CSS

 body {
    color: #871b99;
    }
 p {
    color: rgb(135, 27, 153);
    }
 header {
    border-bottom:1px solid #871b99;
    }
Recent Random Colors