Random Color Generator

#c42ddf Color

Color Codes
Hex Code #c42ddf
RGB Code rgb(196, 45, 223)
HSL Code hsl(291, 74%, 53%)

#c42ddf Color Syntax

rgb()

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

 main {
    background-color: rgb(196, 45, 223);
   }

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(291, 74%, 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 #c42ddf

RGB Code Hex Code Preview
rgb(196, 45, 223, 10%) #c42ddf1a  
rgb(196, 45, 223, 20%) #c42ddf33  
rgb(196, 45, 223, 40%) #c42ddf4C  
rgb(196, 45, 223, 60%) #c42ddf99  
rgb(196, 45, 223, 80%) #c42ddfCC  
rgb(196, 45, 223, 100%) #c42ddfFF  

Saturated and desaturated colors of #c42ddf

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

#c42ddf Color Usage In CSS

 body {
    color: #c42ddf;
    }
 p {
    color: rgb(196, 45, 223);
    }
 header {
    border-bottom:1px solid #c42ddf;
    }
Recent Random Colors