Random Color Generator

#c31793 Color

Color Codes
Hex Code #c31793
RGB Code rgb(195, 23, 147)
HSL Code hsl(317, 79%, 43%)

#c31793 Color Syntax

rgb()

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

 main {
    background-color: rgb(195, 23, 147);
   }

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(317, 79%, 43%);
  }

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

RGB Code Hex Code Preview
rgb(195, 23, 147, 10%) #c317931a  
rgb(195, 23, 147, 20%) #c3179333  
rgb(195, 23, 147, 40%) #c317934C  
rgb(195, 23, 147, 60%) #c3179399  
rgb(195, 23, 147, 80%) #c31793CC  
rgb(195, 23, 147, 100%) #c31793FF  

Saturated and desaturated colors of #c31793

HSL Code Preview
hsl(317, 10%, 43%)  
hsl(317, 20%, 43%)  
hsl(317, 40%, 43%)  
hsl(317, 60%, 43%)  
hsl(317, 80%, 43%)  
hsl(317, 100%, 43%)  

#c31793 Color Usage In CSS

 body {
    color: #c31793;
    }
 p {
    color: rgb(195, 23, 147);
    }
 header {
    border-bottom:1px solid #c31793;
    }
Recent Random Colors