Random Color Generator

#7c1997 Color

Color Codes
Hex Code #7c1997
RGB Code rgb(124, 25, 151)
HSL Code hsl(287, 72%, 35%)

#7c1997 Color Syntax

rgb()

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

 main {
    background-color: rgb(124, 25, 151);
   }

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(287, 72%, 35%);
  }

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

RGB Code Hex Code Preview
rgb(124, 25, 151, 10%) #7c19971a  
rgb(124, 25, 151, 20%) #7c199733  
rgb(124, 25, 151, 40%) #7c19974C  
rgb(124, 25, 151, 60%) #7c199799  
rgb(124, 25, 151, 80%) #7c1997CC  
rgb(124, 25, 151, 100%) #7c1997FF  

Saturated and desaturated colors of #7c1997

HSL Code Preview
hsl(287, 10%, 35%)  
hsl(287, 20%, 35%)  
hsl(287, 40%, 35%)  
hsl(287, 60%, 35%)  
hsl(287, 80%, 35%)  
hsl(287, 100%, 35%)  

#7c1997 Color Usage In CSS

 body {
    color: #7c1997;
    }
 p {
    color: rgb(124, 25, 151);
    }
 header {
    border-bottom:1px solid #7c1997;
    }
Recent Random Colors