Random Color Generator

#531796 Color

Color Codes
Hex Code #531796
RGB Code rgb(83, 23, 150)
HSL Code hsl(268, 73%, 34%)

#531796 Color Syntax

rgb()

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

 main {
    background-color: rgb(83, 23, 150);
   }

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(268, 73%, 34%);
  }

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

RGB Code Hex Code Preview
rgb(83, 23, 150, 10%) #5317961a  
rgb(83, 23, 150, 20%) #53179633  
rgb(83, 23, 150, 40%) #5317964C  
rgb(83, 23, 150, 60%) #53179699  
rgb(83, 23, 150, 80%) #531796CC  
rgb(83, 23, 150, 100%) #531796FF  

Saturated and desaturated colors of #531796

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

#531796 Color Usage In CSS

 body {
    color: #531796;
    }
 p {
    color: rgb(83, 23, 150);
    }
 header {
    border-bottom:1px solid #531796;
    }
Recent Random Colors