Random Color Generator

#cc31eb Color

Color Codes
Hex Code #cc31eb
RGB Code rgb(204, 49, 235)
HSL Code hsl(290, 82%, 56%)

#cc31eb Color Syntax

rgb()

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

 main {
    background-color: rgb(204, 49, 235);
   }

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(290, 82%, 56%);
  }

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

RGB Code Hex Code Preview
rgb(204, 49, 235, 10%) #cc31eb1a  
rgb(204, 49, 235, 20%) #cc31eb33  
rgb(204, 49, 235, 40%) #cc31eb4C  
rgb(204, 49, 235, 60%) #cc31eb99  
rgb(204, 49, 235, 80%) #cc31ebCC  
rgb(204, 49, 235, 100%) #cc31ebFF  

Saturated and desaturated colors of #cc31eb

HSL Code Preview
hsl(290, 10%, 56%)  
hsl(290, 20%, 56%)  
hsl(290, 40%, 56%)  
hsl(290, 60%, 56%)  
hsl(290, 80%, 56%)  
hsl(290, 100%, 56%)  

#cc31eb Color Usage In CSS

 body {
    color: #cc31eb;
    }
 p {
    color: rgb(204, 49, 235);
    }
 header {
    border-bottom:1px solid #cc31eb;
    }
Recent Random Colors