Random Color Generator

#ba40d1 Color

Color Codes
Hex Code #ba40d1
RGB Code rgb(186, 64, 209)
HSL Code hsl(290, 61%, 54%)

#ba40d1 Color Syntax

rgb()

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

 main {
    background-color: rgb(186, 64, 209);
   }

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, 61%, 54%);
  }

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

RGB Code Hex Code Preview
rgb(186, 64, 209, 10%) #ba40d11a  
rgb(186, 64, 209, 20%) #ba40d133  
rgb(186, 64, 209, 40%) #ba40d14C  
rgb(186, 64, 209, 60%) #ba40d199  
rgb(186, 64, 209, 80%) #ba40d1CC  
rgb(186, 64, 209, 100%) #ba40d1FF  

Saturated and desaturated colors of #ba40d1

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

#ba40d1 Color Usage In CSS

 body {
    color: #ba40d1;
    }
 p {
    color: rgb(186, 64, 209);
    }
 header {
    border-bottom:1px solid #ba40d1;
    }
Recent Random Colors