Random Color Generator

#873aca Color

Color Codes
Hex Code #873aca
RGB Code rgb(135, 58, 202)
HSL Code hsl(272, 58%, 51%)

#873aca Color Syntax

rgb()

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

 main {
    background-color: rgb(135, 58, 202);
   }

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(272, 58%, 51%);
  }

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 #873aca

RGB Code Hex Code Preview
rgb(135, 58, 202, 10%) #873aca1a  
rgb(135, 58, 202, 20%) #873aca33  
rgb(135, 58, 202, 40%) #873aca4C  
rgb(135, 58, 202, 60%) #873aca99  
rgb(135, 58, 202, 80%) #873acaCC  
rgb(135, 58, 202, 100%) #873acaFF  

Saturated and desaturated colors of #873aca

HSL Code Preview
hsl(272, 10%, 51%)  
hsl(272, 20%, 51%)  
hsl(272, 40%, 51%)  
hsl(272, 60%, 51%)  
hsl(272, 80%, 51%)  
hsl(272, 100%, 51%)  

#873aca Color Usage In CSS

 body {
    color: #873aca;
    }
 p {
    color: rgb(135, 58, 202);
    }
 header {
    border-bottom:1px solid #873aca;
    }
Recent Random Colors