Random Color Generator

#540a76 Color

Color Codes
Hex Code #540a76
RGB Code rgb(84, 10, 118)
HSL Code hsl(281, 84%, 25%)

#540a76 Color Syntax

rgb()

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

 main {
    background-color: rgb(84, 10, 118);
   }

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(281, 84%, 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 #540a76

RGB Code Hex Code Preview
rgb(84, 10, 118, 10%) #540a761a  
rgb(84, 10, 118, 20%) #540a7633  
rgb(84, 10, 118, 40%) #540a764C  
rgb(84, 10, 118, 60%) #540a7699  
rgb(84, 10, 118, 80%) #540a76CC  
rgb(84, 10, 118, 100%) #540a76FF  

Saturated and desaturated colors of #540a76

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

#540a76 Color Usage In CSS

 body {
    color: #540a76;
    }
 p {
    color: rgb(84, 10, 118);
    }
 header {
    border-bottom:1px solid #540a76;
    }
Recent Random Colors