Random Color Generator

#8c21a6 Color

Color Codes
Hex Code #8c21a6
RGB Code rgb(140, 33, 166)
HSL Code hsl(288, 67%, 39%)

#8c21a6 Color Syntax

rgb()

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

 main {
    background-color: rgb(140, 33, 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(288, 67%, 39%);
  }

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 #8c21a6

RGB Code Hex Code Preview
rgb(140, 33, 166, 10%) #8c21a61a  
rgb(140, 33, 166, 20%) #8c21a633  
rgb(140, 33, 166, 40%) #8c21a64C  
rgb(140, 33, 166, 60%) #8c21a699  
rgb(140, 33, 166, 80%) #8c21a6CC  
rgb(140, 33, 166, 100%) #8c21a6FF  

Saturated and desaturated colors of #8c21a6

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

#8c21a6 Color Usage In CSS

 body {
    color: #8c21a6;
    }
 p {
    color: rgb(140, 33, 166);
    }
 header {
    border-bottom:1px solid #8c21a6;
    }
Recent Random Colors