Random Color Generator

#5d178e Color

Color Codes
Hex Code #5d178e
RGB Code rgb(93, 23, 142)
HSL Code hsl(275, 72%, 32%)

#5d178e Color Syntax

rgb()

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

 main {
    background-color: rgb(93, 23, 142);
   }

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

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 #5d178e

RGB Code Hex Code Preview
rgb(93, 23, 142, 10%) #5d178e1a  
rgb(93, 23, 142, 20%) #5d178e33  
rgb(93, 23, 142, 40%) #5d178e4C  
rgb(93, 23, 142, 60%) #5d178e99  
rgb(93, 23, 142, 80%) #5d178eCC  
rgb(93, 23, 142, 100%) #5d178eFF  

Saturated and desaturated colors of #5d178e

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

#5d178e Color Usage In CSS

 body {
    color: #5d178e;
    }
 p {
    color: rgb(93, 23, 142);
    }
 header {
    border-bottom:1px solid #5d178e;
    }
Recent Random Colors