Random Color Generator

#513dbd Color

Color Codes
Hex Code #513dbd
RGB Code rgb(81, 61, 189)
HSL Code hsl(249, 51%, 49%)

#513dbd Color Syntax

rgb()

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

 main {
    background-color: rgb(81, 61, 189);
   }

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(249, 51%, 49%);
  }

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 #513dbd

RGB Code Hex Code Preview
rgb(81, 61, 189, 10%) #513dbd1a  
rgb(81, 61, 189, 20%) #513dbd33  
rgb(81, 61, 189, 40%) #513dbd4C  
rgb(81, 61, 189, 60%) #513dbd99  
rgb(81, 61, 189, 80%) #513dbdCC  
rgb(81, 61, 189, 100%) #513dbdFF  

Saturated and desaturated colors of #513dbd

HSL Code Preview
hsl(249, 10%, 49%)  
hsl(249, 20%, 49%)  
hsl(249, 40%, 49%)  
hsl(249, 60%, 49%)  
hsl(249, 80%, 49%)  
hsl(249, 100%, 49%)  

#513dbd Color Usage In CSS

 body {
    color: #513dbd;
    }
 p {
    color: rgb(81, 61, 189);
    }
 header {
    border-bottom:1px solid #513dbd;
    }
Recent Random Colors