Random Color Generator

#c040b0 Color

Color Codes
Hex Code #c040b0
RGB Code rgb(192, 64, 176)
HSL Code hsl(308, 50%, 50%)

#c040b0 Color Syntax

rgb()

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

 main {
    background-color: rgb(192, 64, 176);
   }

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(308, 50%, 50%);
  }

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

RGB Code Hex Code Preview
rgb(192, 64, 176, 10%) #c040b01a  
rgb(192, 64, 176, 20%) #c040b033  
rgb(192, 64, 176, 40%) #c040b04C  
rgb(192, 64, 176, 60%) #c040b099  
rgb(192, 64, 176, 80%) #c040b0CC  
rgb(192, 64, 176, 100%) #c040b0FF  

Saturated and desaturated colors of #c040b0

HSL Code Preview
hsl(308, 10%, 50%)  
hsl(308, 20%, 50%)  
hsl(308, 40%, 50%)  
hsl(308, 60%, 50%)  
hsl(308, 80%, 50%)  
hsl(308, 100%, 50%)  

#c040b0 Color Usage In CSS

 body {
    color: #c040b0;
    }
 p {
    color: rgb(192, 64, 176);
    }
 header {
    border-bottom:1px solid #c040b0;
    }
Recent Random Colors