Random Color Generator

#cc99ed Color

Color Codes
Hex Code #cc99ed
RGB Code rgb(204, 153, 237)
HSL Code hsl(276, 70%, 76%)

#cc99ed Color Syntax

rgb()

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

 main {
    background-color: rgb(204, 153, 237);
   }

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(276, 70%, 76%);
  }

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

RGB Code Hex Code Preview
rgb(204, 153, 237, 10%) #cc99ed1a  
rgb(204, 153, 237, 20%) #cc99ed33  
rgb(204, 153, 237, 40%) #cc99ed4C  
rgb(204, 153, 237, 60%) #cc99ed99  
rgb(204, 153, 237, 80%) #cc99edCC  
rgb(204, 153, 237, 100%) #cc99edFF  

Saturated and desaturated colors of #cc99ed

HSL Code Preview
hsl(276, 10%, 76%)  
hsl(276, 20%, 76%)  
hsl(276, 40%, 76%)  
hsl(276, 60%, 76%)  
hsl(276, 80%, 76%)  
hsl(276, 100%, 76%)  

#cc99ed Color Usage In CSS

 body {
    color: #cc99ed;
    }
 p {
    color: rgb(204, 153, 237);
    }
 header {
    border-bottom:1px solid #cc99ed;
    }
Recent Random Colors