Random Color Generator

#b51fa6 Color

Color Codes
Hex Code #b51fa6
RGB Code rgb(181, 31, 166)
HSL Code hsl(306, 71%, 42%)

#b51fa6 Color Syntax

rgb()

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

 main {
    background-color: rgb(181, 31, 166);
   }

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(306, 71%, 42%);
  }

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

RGB Code Hex Code Preview
rgb(181, 31, 166, 10%) #b51fa61a  
rgb(181, 31, 166, 20%) #b51fa633  
rgb(181, 31, 166, 40%) #b51fa64C  
rgb(181, 31, 166, 60%) #b51fa699  
rgb(181, 31, 166, 80%) #b51fa6CC  
rgb(181, 31, 166, 100%) #b51fa6FF  

Saturated and desaturated colors of #b51fa6

HSL Code Preview
hsl(306, 10%, 42%)  
hsl(306, 20%, 42%)  
hsl(306, 40%, 42%)  
hsl(306, 60%, 42%)  
hsl(306, 80%, 42%)  
hsl(306, 100%, 42%)  

#b51fa6 Color Usage In CSS

 body {
    color: #b51fa6;
    }
 p {
    color: rgb(181, 31, 166);
    }
 header {
    border-bottom:1px solid #b51fa6;
    }
Recent Random Colors