Random Color Generator

#5b385c Color

Color Codes
Hex Code #5b385c
RGB Code rgb(91, 56, 92)
HSL Code hsl(298, 24%, 29%)

#5b385c Color Syntax

rgb()

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

 main {
    background-color: rgb(91, 56, 92);
   }

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(298, 24%, 29%);
  }

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

RGB Code Hex Code Preview
rgb(91, 56, 92, 10%) #5b385c1a  
rgb(91, 56, 92, 20%) #5b385c33  
rgb(91, 56, 92, 40%) #5b385c4C  
rgb(91, 56, 92, 60%) #5b385c99  
rgb(91, 56, 92, 80%) #5b385cCC  
rgb(91, 56, 92, 100%) #5b385cFF  

Saturated and desaturated colors of #5b385c

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

#5b385c Color Usage In CSS

 body {
    color: #5b385c;
    }
 p {
    color: rgb(91, 56, 92);
    }
 header {
    border-bottom:1px solid #5b385c;
    }
Recent Random Colors