Random Color Generator

#c128ef Color

Color Codes
Hex Code #c128ef
RGB Code rgb(193, 40, 239)
HSL Code hsl(286, 86%, 55%)

#c128ef Color Syntax

rgb()

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

 main {
    background-color: rgb(193, 40, 239);
   }

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, 86%, 55%);
  }

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

RGB Code Hex Code Preview
rgb(193, 40, 239, 10%) #c128ef1a  
rgb(193, 40, 239, 20%) #c128ef33  
rgb(193, 40, 239, 40%) #c128ef4C  
rgb(193, 40, 239, 60%) #c128ef99  
rgb(193, 40, 239, 80%) #c128efCC  
rgb(193, 40, 239, 100%) #c128efFF  

Saturated and desaturated colors of #c128ef

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

#c128ef Color Usage In CSS

 body {
    color: #c128ef;
    }
 p {
    color: rgb(193, 40, 239);
    }
 header {
    border-bottom:1px solid #c128ef;
    }
Recent Random Colors