Random Color Generator

#ba6198 Color

Color Codes
Hex Code #ba6198
RGB Code rgb(186, 97, 152)
HSL Code hsl(323, 39%, 55%)

#ba6198 Color Syntax

rgb()

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

 main {
    background-color: rgb(186, 97, 152);
   }

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(323, 39%, 55%);
  }

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

RGB Code Hex Code Preview
rgb(186, 97, 152, 10%) #ba61981a  
rgb(186, 97, 152, 20%) #ba619833  
rgb(186, 97, 152, 40%) #ba61984C  
rgb(186, 97, 152, 60%) #ba619899  
rgb(186, 97, 152, 80%) #ba6198CC  
rgb(186, 97, 152, 100%) #ba6198FF  

Saturated and desaturated colors of #ba6198

HSL Code Preview
hsl(323, 10%, 55%)  
hsl(323, 20%, 55%)  
hsl(323, 40%, 55%)  
hsl(323, 60%, 55%)  
hsl(323, 80%, 55%)  
hsl(323, 100%, 55%)  

#ba6198 Color Usage In CSS

 body {
    color: #ba6198;
    }
 p {
    color: rgb(186, 97, 152);
    }
 header {
    border-bottom:1px solid #ba6198;
    }
Recent Random Colors