Random Color Generator

#c531ac Color

Color Codes
Hex Code #c531ac
RGB Code rgb(197, 49, 172)
HSL Code hsl(310, 60%, 48%)

#c531ac Color Syntax

rgb()

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

 main {
    background-color: rgb(197, 49, 172);
   }

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(310, 60%, 48%);
  }

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

RGB Code Hex Code Preview
rgb(197, 49, 172, 10%) #c531ac1a  
rgb(197, 49, 172, 20%) #c531ac33  
rgb(197, 49, 172, 40%) #c531ac4C  
rgb(197, 49, 172, 60%) #c531ac99  
rgb(197, 49, 172, 80%) #c531acCC  
rgb(197, 49, 172, 100%) #c531acFF  

Saturated and desaturated colors of #c531ac

HSL Code Preview
hsl(310, 10%, 48%)  
hsl(310, 20%, 48%)  
hsl(310, 40%, 48%)  
hsl(310, 60%, 48%)  
hsl(310, 80%, 48%)  
hsl(310, 100%, 48%)  

#c531ac Color Usage In CSS

 body {
    color: #c531ac;
    }
 p {
    color: rgb(197, 49, 172);
    }
 header {
    border-bottom:1px solid #c531ac;
    }
Recent Random Colors