Random Color Generator

#b431ac Color

Color Codes
Hex Code #b431ac
RGB Code rgb(180, 49, 172)
HSL Code hsl(304, 57%, 45%)

#b431ac Color Syntax

rgb()

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

 main {
    background-color: rgb(180, 49, 172);
   }

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, 57%, 45%);
  }

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

RGB Code Hex Code Preview
rgb(180, 49, 172, 10%) #b431ac1a  
rgb(180, 49, 172, 20%) #b431ac33  
rgb(180, 49, 172, 40%) #b431ac4C  
rgb(180, 49, 172, 60%) #b431ac99  
rgb(180, 49, 172, 80%) #b431acCC  
rgb(180, 49, 172, 100%) #b431acFF  

Saturated and desaturated colors of #b431ac

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

#b431ac Color Usage In CSS

 body {
    color: #b431ac;
    }
 p {
    color: rgb(180, 49, 172);
    }
 header {
    border-bottom:1px solid #b431ac;
    }
Recent Random Colors