Random Color Generator

#ba1faf Color

Color Codes
Hex Code #ba1faf
RGB Code rgb(186, 31, 175)
HSL Code hsl(304, 71%, 43%)

#ba1faf Color Syntax

rgb()

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

 main {
    background-color: rgb(186, 31, 175);
   }

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(304, 71%, 43%);
  }

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

RGB Code Hex Code Preview
rgb(186, 31, 175, 10%) #ba1faf1a  
rgb(186, 31, 175, 20%) #ba1faf33  
rgb(186, 31, 175, 40%) #ba1faf4C  
rgb(186, 31, 175, 60%) #ba1faf99  
rgb(186, 31, 175, 80%) #ba1fafCC  
rgb(186, 31, 175, 100%) #ba1fafFF  

Saturated and desaturated colors of #ba1faf

HSL Code Preview
hsl(304, 10%, 43%)  
hsl(304, 20%, 43%)  
hsl(304, 40%, 43%)  
hsl(304, 60%, 43%)  
hsl(304, 80%, 43%)  
hsl(304, 100%, 43%)  

#ba1faf Color Usage In CSS

 body {
    color: #ba1faf;
    }
 p {
    color: rgb(186, 31, 175);
    }
 header {
    border-bottom:1px solid #ba1faf;
    }
Recent Random Colors