Random Color Generator

#731daf Color

Color Codes
Hex Code #731daf
RGB Code rgb(115, 29, 175)
HSL Code hsl(275, 72%, 40%)

#731daf Color Syntax

rgb()

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

 main {
    background-color: rgb(115, 29, 175);
   }

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(275, 72%, 40%);
  }

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 #731daf

RGB Code Hex Code Preview
rgb(115, 29, 175, 10%) #731daf1a  
rgb(115, 29, 175, 20%) #731daf33  
rgb(115, 29, 175, 40%) #731daf4C  
rgb(115, 29, 175, 60%) #731daf99  
rgb(115, 29, 175, 80%) #731dafCC  
rgb(115, 29, 175, 100%) #731dafFF  

Saturated and desaturated colors of #731daf

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

#731daf Color Usage In CSS

 body {
    color: #731daf;
    }
 p {
    color: rgb(115, 29, 175);
    }
 header {
    border-bottom:1px solid #731daf;
    }
Recent Random Colors