Random Color Generator

#511d89 Color

Color Codes
Hex Code #511d89
RGB Code rgb(81, 29, 137)
HSL Code hsl(269, 65%, 33%)

#511d89 Color Syntax

rgb()

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

 main {
    background-color: rgb(81, 29, 137);
   }

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(269, 65%, 33%);
  }

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 #511d89

RGB Code Hex Code Preview
rgb(81, 29, 137, 10%) #511d891a  
rgb(81, 29, 137, 20%) #511d8933  
rgb(81, 29, 137, 40%) #511d894C  
rgb(81, 29, 137, 60%) #511d8999  
rgb(81, 29, 137, 80%) #511d89CC  
rgb(81, 29, 137, 100%) #511d89FF  

Saturated and desaturated colors of #511d89

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

#511d89 Color Usage In CSS

 body {
    color: #511d89;
    }
 p {
    color: rgb(81, 29, 137);
    }
 header {
    border-bottom:1px solid #511d89;
    }
Recent Random Colors