Random Color Generator

#942d77 Color

Color Codes
Hex Code #942d77
RGB Code rgb(148, 45, 119)
HSL Code hsl(317, 53%, 38%)

#942d77 Color Syntax

rgb()

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

 main {
    background-color: rgb(148, 45, 119);
   }

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(317, 53%, 38%);
  }

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 #942d77

RGB Code Hex Code Preview
rgb(148, 45, 119, 10%) #942d771a  
rgb(148, 45, 119, 20%) #942d7733  
rgb(148, 45, 119, 40%) #942d774C  
rgb(148, 45, 119, 60%) #942d7799  
rgb(148, 45, 119, 80%) #942d77CC  
rgb(148, 45, 119, 100%) #942d77FF  

Saturated and desaturated colors of #942d77

HSL Code Preview
hsl(317, 10%, 38%)  
hsl(317, 20%, 38%)  
hsl(317, 40%, 38%)  
hsl(317, 60%, 38%)  
hsl(317, 80%, 38%)  
hsl(317, 100%, 38%)  

#942d77 Color Usage In CSS

 body {
    color: #942d77;
    }
 p {
    color: rgb(148, 45, 119);
    }
 header {
    border-bottom:1px solid #942d77;
    }
Recent Random Colors