Random Color Generator

#b52ad5 Color

Color Codes
Hex Code #b52ad5
RGB Code rgb(181, 42, 213)
HSL Code hsl(289, 67%, 50%)

#b52ad5 Color Syntax

rgb()

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

 main {
    background-color: rgb(181, 42, 213);
   }

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(289, 67%, 50%);
  }

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

RGB Code Hex Code Preview
rgb(181, 42, 213, 10%) #b52ad51a  
rgb(181, 42, 213, 20%) #b52ad533  
rgb(181, 42, 213, 40%) #b52ad54C  
rgb(181, 42, 213, 60%) #b52ad599  
rgb(181, 42, 213, 80%) #b52ad5CC  
rgb(181, 42, 213, 100%) #b52ad5FF  

Saturated and desaturated colors of #b52ad5

HSL Code Preview
hsl(289, 10%, 50%)  
hsl(289, 20%, 50%)  
hsl(289, 40%, 50%)  
hsl(289, 60%, 50%)  
hsl(289, 80%, 50%)  
hsl(289, 100%, 50%)  

#b52ad5 Color Usage In CSS

 body {
    color: #b52ad5;
    }
 p {
    color: rgb(181, 42, 213);
    }
 header {
    border-bottom:1px solid #b52ad5;
    }
Recent Random Colors