Random Color Generator

#b942d8 Color

Color Codes
Hex Code #b942d8
RGB Code rgb(185, 66, 216)
HSL Code hsl(288, 66%, 55%)

#b942d8 Color Syntax

rgb()

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

 main {
    background-color: rgb(185, 66, 216);
   }

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(288, 66%, 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 #b942d8

RGB Code Hex Code Preview
rgb(185, 66, 216, 10%) #b942d81a  
rgb(185, 66, 216, 20%) #b942d833  
rgb(185, 66, 216, 40%) #b942d84C  
rgb(185, 66, 216, 60%) #b942d899  
rgb(185, 66, 216, 80%) #b942d8CC  
rgb(185, 66, 216, 100%) #b942d8FF  

Saturated and desaturated colors of #b942d8

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

#b942d8 Color Usage In CSS

 body {
    color: #b942d8;
    }
 p {
    color: rgb(185, 66, 216);
    }
 header {
    border-bottom:1px solid #b942d8;
    }
Recent Random Colors