Random Color Generator

#ba87d0 Color

Color Codes
Hex Code #ba87d0
RGB Code rgb(186, 135, 208)
HSL Code hsl(282, 44%, 67%)

#ba87d0 Color Syntax

rgb()

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

 main {
    background-color: rgb(186, 135, 208);
   }

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(282, 44%, 67%);
  }

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

RGB Code Hex Code Preview
rgb(186, 135, 208, 10%) #ba87d01a  
rgb(186, 135, 208, 20%) #ba87d033  
rgb(186, 135, 208, 40%) #ba87d04C  
rgb(186, 135, 208, 60%) #ba87d099  
rgb(186, 135, 208, 80%) #ba87d0CC  
rgb(186, 135, 208, 100%) #ba87d0FF  

Saturated and desaturated colors of #ba87d0

HSL Code Preview
hsl(282, 10%, 67%)  
hsl(282, 20%, 67%)  
hsl(282, 40%, 67%)  
hsl(282, 60%, 67%)  
hsl(282, 80%, 67%)  
hsl(282, 100%, 67%)  

#ba87d0 Color Usage In CSS

 body {
    color: #ba87d0;
    }
 p {
    color: rgb(186, 135, 208);
    }
 header {
    border-bottom:1px solid #ba87d0;
    }
Recent Random Colors