Random Color Generator

#ba56ce Color

Color Codes
Hex Code #ba56ce
RGB Code rgb(186, 86, 206)
HSL Code hsl(290, 55%, 57%)

#ba56ce Color Syntax

rgb()

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

 main {
    background-color: rgb(186, 86, 206);
   }

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(290, 55%, 57%);
  }

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

RGB Code Hex Code Preview
rgb(186, 86, 206, 10%) #ba56ce1a  
rgb(186, 86, 206, 20%) #ba56ce33  
rgb(186, 86, 206, 40%) #ba56ce4C  
rgb(186, 86, 206, 60%) #ba56ce99  
rgb(186, 86, 206, 80%) #ba56ceCC  
rgb(186, 86, 206, 100%) #ba56ceFF  

Saturated and desaturated colors of #ba56ce

HSL Code Preview
hsl(290, 10%, 57%)  
hsl(290, 20%, 57%)  
hsl(290, 40%, 57%)  
hsl(290, 60%, 57%)  
hsl(290, 80%, 57%)  
hsl(290, 100%, 57%)  

#ba56ce Color Usage In CSS

 body {
    color: #ba56ce;
    }
 p {
    color: rgb(186, 86, 206);
    }
 header {
    border-bottom:1px solid #ba56ce;
    }
Recent Random Colors