Random Color Generator

#540db3 Color

Color Codes
Hex Code #540db3
RGB Code rgb(84, 13, 179)
HSL Code hsl(266, 86%, 38%)

#540db3 Color Syntax

rgb()

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

 main {
    background-color: rgb(84, 13, 179);
   }

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(266, 86%, 38%);
  }

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 #540db3

RGB Code Hex Code Preview
rgb(84, 13, 179, 10%) #540db31a  
rgb(84, 13, 179, 20%) #540db333  
rgb(84, 13, 179, 40%) #540db34C  
rgb(84, 13, 179, 60%) #540db399  
rgb(84, 13, 179, 80%) #540db3CC  
rgb(84, 13, 179, 100%) #540db3FF  

Saturated and desaturated colors of #540db3

HSL Code Preview
hsl(266, 10%, 38%)  
hsl(266, 20%, 38%)  
hsl(266, 40%, 38%)  
hsl(266, 60%, 38%)  
hsl(266, 80%, 38%)  
hsl(266, 100%, 38%)  

#540db3 Color Usage In CSS

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