Random Color Generator

#ba0cf7 Color

Color Codes
Hex Code #ba0cf7
RGB Code rgb(186, 12, 247)
HSL Code hsl(284, 94%, 51%)

#ba0cf7 Color Syntax

rgb()

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

 main {
    background-color: rgb(186, 12, 247);
   }

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(284, 94%, 51%);
  }

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

RGB Code Hex Code Preview
rgb(186, 12, 247, 10%) #ba0cf71a  
rgb(186, 12, 247, 20%) #ba0cf733  
rgb(186, 12, 247, 40%) #ba0cf74C  
rgb(186, 12, 247, 60%) #ba0cf799  
rgb(186, 12, 247, 80%) #ba0cf7CC  
rgb(186, 12, 247, 100%) #ba0cf7FF  

Saturated and desaturated colors of #ba0cf7

HSL Code Preview
hsl(284, 10%, 51%)  
hsl(284, 20%, 51%)  
hsl(284, 40%, 51%)  
hsl(284, 60%, 51%)  
hsl(284, 80%, 51%)  
hsl(284, 100%, 51%)  

#ba0cf7 Color Usage In CSS

 body {
    color: #ba0cf7;
    }
 p {
    color: rgb(186, 12, 247);
    }
 header {
    border-bottom:1px solid #ba0cf7;
    }
Recent Random Colors