Random Color Generator

#c70297 Color

Color Codes
Hex Code #c70297
RGB Code rgb(199, 02, 151)
HSL Code hsl(315, 98%, 39%)

#c70297 Color Syntax

rgb()

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

 main {
    background-color: rgb(199, 02, 151);
   }

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(315, 98%, 39%);
  }

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

RGB Code Hex Code Preview
rgb(199, 02, 151, 10%) #c702971a  
rgb(199, 02, 151, 20%) #c7029733  
rgb(199, 02, 151, 40%) #c702974C  
rgb(199, 02, 151, 60%) #c7029799  
rgb(199, 02, 151, 80%) #c70297CC  
rgb(199, 02, 151, 100%) #c70297FF  

Saturated and desaturated colors of #c70297

HSL Code Preview
hsl(315, 10%, 39%)  
hsl(315, 20%, 39%)  
hsl(315, 40%, 39%)  
hsl(315, 60%, 39%)  
hsl(315, 80%, 39%)  
hsl(315, 100%, 39%)  

#c70297 Color Usage In CSS

 body {
    color: #c70297;
    }
 p {
    color: rgb(199, 02, 151);
    }
 header {
    border-bottom:1px solid #c70297;
    }
Recent Random Colors