Random Color Generator

#8942ca Color

Color Codes
Hex Code #8942ca
RGB Code rgb(137, 66, 202)
HSL Code hsl(271, 56%, 53%)

#8942ca Color Syntax

rgb()

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

 main {
    background-color: rgb(137, 66, 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(271, 56%, 53%);
  }

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 #8942ca

RGB Code Hex Code Preview
rgb(137, 66, 202, 10%) #8942ca1a  
rgb(137, 66, 202, 20%) #8942ca33  
rgb(137, 66, 202, 40%) #8942ca4C  
rgb(137, 66, 202, 60%) #8942ca99  
rgb(137, 66, 202, 80%) #8942caCC  
rgb(137, 66, 202, 100%) #8942caFF  

Saturated and desaturated colors of #8942ca

HSL Code Preview
hsl(271, 10%, 53%)  
hsl(271, 20%, 53%)  
hsl(271, 40%, 53%)  
hsl(271, 60%, 53%)  
hsl(271, 80%, 53%)  
hsl(271, 100%, 53%)  

#8942ca Color Usage In CSS

 body {
    color: #8942ca;
    }
 p {
    color: rgb(137, 66, 202);
    }
 header {
    border-bottom:1px solid #8942ca;
    }
Recent Random Colors