Random Color Generator

#c742ec Color

Color Codes
Hex Code #c742ec
RGB Code rgb(199, 66, 236)
HSL Code hsl(287, 82%, 59%)

#c742ec Color Syntax

rgb()

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

 main {
    background-color: rgb(199, 66, 236);
   }

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(287, 82%, 59%);
  }

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

RGB Code Hex Code Preview
rgb(199, 66, 236, 10%) #c742ec1a  
rgb(199, 66, 236, 20%) #c742ec33  
rgb(199, 66, 236, 40%) #c742ec4C  
rgb(199, 66, 236, 60%) #c742ec99  
rgb(199, 66, 236, 80%) #c742ecCC  
rgb(199, 66, 236, 100%) #c742ecFF  

Saturated and desaturated colors of #c742ec

HSL Code Preview
hsl(287, 10%, 59%)  
hsl(287, 20%, 59%)  
hsl(287, 40%, 59%)  
hsl(287, 60%, 59%)  
hsl(287, 80%, 59%)  
hsl(287, 100%, 59%)  

#c742ec Color Usage In CSS

 body {
    color: #c742ec;
    }
 p {
    color: rgb(199, 66, 236);
    }
 header {
    border-bottom:1px solid #c742ec;
    }
Recent Random Colors