Random Color Generator

#cc1981 Color

Color Codes
Hex Code #cc1981
RGB Code rgb(204, 25, 129)
HSL Code hsl(325, 78%, 45%)

#cc1981 Color Syntax

rgb()

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

 main {
    background-color: rgb(204, 25, 129);
   }

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(325, 78%, 45%);
  }

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

RGB Code Hex Code Preview
rgb(204, 25, 129, 10%) #cc19811a  
rgb(204, 25, 129, 20%) #cc198133  
rgb(204, 25, 129, 40%) #cc19814C  
rgb(204, 25, 129, 60%) #cc198199  
rgb(204, 25, 129, 80%) #cc1981CC  
rgb(204, 25, 129, 100%) #cc1981FF  

Saturated and desaturated colors of #cc1981

HSL Code Preview
hsl(325, 10%, 45%)  
hsl(325, 20%, 45%)  
hsl(325, 40%, 45%)  
hsl(325, 60%, 45%)  
hsl(325, 80%, 45%)  
hsl(325, 100%, 45%)  

#cc1981 Color Usage In CSS

 body {
    color: #cc1981;
    }
 p {
    color: rgb(204, 25, 129);
    }
 header {
    border-bottom:1px solid #cc1981;
    }
Recent Random Colors