Random Color Generator

#511b65 Color

Color Codes
Hex Code #511b65
RGB Code rgb(81, 27, 101)
HSL Code hsl(284, 58%, 25%)

#511b65 Color Syntax

rgb()

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

 main {
    background-color: rgb(81, 27, 101);
   }

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(284, 58%, 25%);
  }

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

RGB Code Hex Code Preview
rgb(81, 27, 101, 10%) #511b651a  
rgb(81, 27, 101, 20%) #511b6533  
rgb(81, 27, 101, 40%) #511b654C  
rgb(81, 27, 101, 60%) #511b6599  
rgb(81, 27, 101, 80%) #511b65CC  
rgb(81, 27, 101, 100%) #511b65FF  

Saturated and desaturated colors of #511b65

HSL Code Preview
hsl(284, 10%, 25%)  
hsl(284, 20%, 25%)  
hsl(284, 40%, 25%)  
hsl(284, 60%, 25%)  
hsl(284, 80%, 25%)  
hsl(284, 100%, 25%)  

#511b65 Color Usage In CSS

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