Random Color Generator

#c40afb Color

Color Codes
Hex Code #c40afb
RGB Code rgb(196, 10, 251)
HSL Code hsl(286, 97%, 51%)

#c40afb Color Syntax

rgb()

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

 main {
    background-color: rgb(196, 10, 251);
   }

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(286, 97%, 51%);
  }

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

RGB Code Hex Code Preview
rgb(196, 10, 251, 10%) #c40afb1a  
rgb(196, 10, 251, 20%) #c40afb33  
rgb(196, 10, 251, 40%) #c40afb4C  
rgb(196, 10, 251, 60%) #c40afb99  
rgb(196, 10, 251, 80%) #c40afbCC  
rgb(196, 10, 251, 100%) #c40afbFF  

Saturated and desaturated colors of #c40afb

HSL Code Preview
hsl(286, 10%, 51%)  
hsl(286, 20%, 51%)  
hsl(286, 40%, 51%)  
hsl(286, 60%, 51%)  
hsl(286, 80%, 51%)  
hsl(286, 100%, 51%)  

#c40afb Color Usage In CSS

 body {
    color: #c40afb;
    }
 p {
    color: rgb(196, 10, 251);
    }
 header {
    border-bottom:1px solid #c40afb;
    }
Recent Random Colors