Random Color Generator

#5a1b49 Color

Color Codes
Hex Code #5a1b49
RGB Code rgb(90, 27, 73)
HSL Code hsl(316, 54%, 23%)

#5a1b49 Color Syntax

rgb()

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

 main {
    background-color: rgb(90, 27, 73);
   }

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(316, 54%, 23%);
  }

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

RGB Code Hex Code Preview
rgb(90, 27, 73, 10%) #5a1b491a  
rgb(90, 27, 73, 20%) #5a1b4933  
rgb(90, 27, 73, 40%) #5a1b494C  
rgb(90, 27, 73, 60%) #5a1b4999  
rgb(90, 27, 73, 80%) #5a1b49CC  
rgb(90, 27, 73, 100%) #5a1b49FF  

Saturated and desaturated colors of #5a1b49

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

#5a1b49 Color Usage In CSS

 body {
    color: #5a1b49;
    }
 p {
    color: rgb(90, 27, 73);
    }
 header {
    border-bottom:1px solid #5a1b49;
    }
Recent Random Colors