Random Color Generator

#cd42ca Color

Color Codes
Hex Code #cd42ca
RGB Code rgb(205, 66, 202)
HSL Code hsl(301, 58%, 53%)

#cd42ca Color Syntax

rgb()

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

 main {
    background-color: rgb(205, 66, 202);
   }

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(301, 58%, 53%);
  }

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

RGB Code Hex Code Preview
rgb(205, 66, 202, 10%) #cd42ca1a  
rgb(205, 66, 202, 20%) #cd42ca33  
rgb(205, 66, 202, 40%) #cd42ca4C  
rgb(205, 66, 202, 60%) #cd42ca99  
rgb(205, 66, 202, 80%) #cd42caCC  
rgb(205, 66, 202, 100%) #cd42caFF  

Saturated and desaturated colors of #cd42ca

HSL Code Preview
hsl(301, 10%, 53%)  
hsl(301, 20%, 53%)  
hsl(301, 40%, 53%)  
hsl(301, 60%, 53%)  
hsl(301, 80%, 53%)  
hsl(301, 100%, 53%)  

#cd42ca Color Usage In CSS

 body {
    color: #cd42ca;
    }
 p {
    color: rgb(205, 66, 202);
    }
 header {
    border-bottom:1px solid #cd42ca;
    }
Recent Random Colors