Random Color Generator

#511d50 Color

Color Codes
Hex Code #511d50
RGB Code rgb(81, 29, 80)
HSL Code hsl(301, 47%, 22%)

#511d50 Color Syntax

rgb()

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

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

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(301, 47%, 22%);
  }

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

RGB Code Hex Code Preview
rgb(81, 29, 80, 10%) #511d501a  
rgb(81, 29, 80, 20%) #511d5033  
rgb(81, 29, 80, 40%) #511d504C  
rgb(81, 29, 80, 60%) #511d5099  
rgb(81, 29, 80, 80%) #511d50CC  
rgb(81, 29, 80, 100%) #511d50FF  

Saturated and desaturated colors of #511d50

HSL Code Preview
hsl(301, 10%, 22%)  
hsl(301, 20%, 22%)  
hsl(301, 40%, 22%)  
hsl(301, 60%, 22%)  
hsl(301, 80%, 22%)  
hsl(301, 100%, 22%)  

#511d50 Color Usage In CSS

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