Random Color Generator

#c010f5 Color

Color Codes
Hex Code #c010f5
RGB Code rgb(192, 16, 245)
HSL Code hsl(286, 92%, 51%)

#c010f5 Color Syntax

rgb()

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

 main {
    background-color: rgb(192, 16, 245);
   }

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, 92%, 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 #c010f5

RGB Code Hex Code Preview
rgb(192, 16, 245, 10%) #c010f51a  
rgb(192, 16, 245, 20%) #c010f533  
rgb(192, 16, 245, 40%) #c010f54C  
rgb(192, 16, 245, 60%) #c010f599  
rgb(192, 16, 245, 80%) #c010f5CC  
rgb(192, 16, 245, 100%) #c010f5FF  

Saturated and desaturated colors of #c010f5

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%)  

#c010f5 Color Usage In CSS

 body {
    color: #c010f5;
    }
 p {
    color: rgb(192, 16, 245);
    }
 header {
    border-bottom:1px solid #c010f5;
    }
Recent Random Colors