Random Color Generator

#ba2f6e Color

Color Codes
Hex Code #ba2f6e
RGB Code rgb(186, 47, 110)
HSL Code hsl(333, 60%, 46%)

#ba2f6e Color Syntax

rgb()

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

 main {
    background-color: rgb(186, 47, 110);
   }

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(333, 60%, 46%);
  }

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

RGB Code Hex Code Preview
rgb(186, 47, 110, 10%) #ba2f6e1a  
rgb(186, 47, 110, 20%) #ba2f6e33  
rgb(186, 47, 110, 40%) #ba2f6e4C  
rgb(186, 47, 110, 60%) #ba2f6e99  
rgb(186, 47, 110, 80%) #ba2f6eCC  
rgb(186, 47, 110, 100%) #ba2f6eFF  

Saturated and desaturated colors of #ba2f6e

HSL Code Preview
hsl(333, 10%, 46%)  
hsl(333, 20%, 46%)  
hsl(333, 40%, 46%)  
hsl(333, 60%, 46%)  
hsl(333, 80%, 46%)  
hsl(333, 100%, 46%)  

#ba2f6e Color Usage In CSS

 body {
    color: #ba2f6e;
    }
 p {
    color: rgb(186, 47, 110);
    }
 header {
    border-bottom:1px solid #ba2f6e;
    }
Recent Random Colors