Random Color Generator

#c966f5 Color

Color Codes
Hex Code #c966f5
RGB Code rgb(201, 102, 245)
HSL Code hsl(282, 88%, 68%)

#c966f5 Color Syntax

rgb()

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

 main {
    background-color: rgb(201, 102, 245);
   }

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(282, 88%, 68%);
  }

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

RGB Code Hex Code Preview
rgb(201, 102, 245, 10%) #c966f51a  
rgb(201, 102, 245, 20%) #c966f533  
rgb(201, 102, 245, 40%) #c966f54C  
rgb(201, 102, 245, 60%) #c966f599  
rgb(201, 102, 245, 80%) #c966f5CC  
rgb(201, 102, 245, 100%) #c966f5FF  

Saturated and desaturated colors of #c966f5

HSL Code Preview
hsl(282, 10%, 68%)  
hsl(282, 20%, 68%)  
hsl(282, 40%, 68%)  
hsl(282, 60%, 68%)  
hsl(282, 80%, 68%)  
hsl(282, 100%, 68%)  

#c966f5 Color Usage In CSS

 body {
    color: #c966f5;
    }
 p {
    color: rgb(201, 102, 245);
    }
 header {
    border-bottom:1px solid #c966f5;
    }
Recent Random Colors