Random Color Generator

#7851a9 Color

Color Codes
Hex Code #7851a9
RGB Code rgb(120, 81, 169)
HSL Code hsl(267, 35%, 49%)

#7851a9 Color Syntax

rgb()

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

 main {
    background-color: rgb(120, 81, 169);
   }

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(267, 35%, 49%);
  }

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 #7851a9

RGB Code Hex Code Preview
rgb(120, 81, 169, 10%) #7851a91a  
rgb(120, 81, 169, 20%) #7851a933  
rgb(120, 81, 169, 40%) #7851a94C  
rgb(120, 81, 169, 60%) #7851a999  
rgb(120, 81, 169, 80%) #7851a9CC  
rgb(120, 81, 169, 100%) #7851a9FF  

Saturated and desaturated colors of #7851a9

HSL Code Preview
hsl(267, 10%, 49%)  
hsl(267, 20%, 49%)  
hsl(267, 40%, 49%)  
hsl(267, 60%, 49%)  
hsl(267, 80%, 49%)  
hsl(267, 100%, 49%)  

#7851a9 Color Usage In CSS

 body {
    color: #7851a9;
    }
 p {
    color: rgb(120, 81, 169);
    }
 header {
    border-bottom:1px solid #7851a9;
    }
Recent Random Colors