Random Color Generator

#516cb5 Color

Color Codes
Hex Code #516cb5
RGB Code rgb(81, 108, 181)
HSL Code hsl(224, 40%, 51%)

#516cb5 Color Syntax

rgb()

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

 main {
    background-color: rgb(81, 108, 181);
   }

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(224, 40%, 51%);
  }

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 #516cb5

RGB Code Hex Code Preview
rgb(81, 108, 181, 10%) #516cb51a  
rgb(81, 108, 181, 20%) #516cb533  
rgb(81, 108, 181, 40%) #516cb54C  
rgb(81, 108, 181, 60%) #516cb599  
rgb(81, 108, 181, 80%) #516cb5CC  
rgb(81, 108, 181, 100%) #516cb5FF  

Saturated and desaturated colors of #516cb5

HSL Code Preview
hsl(224, 10%, 51%)  
hsl(224, 20%, 51%)  
hsl(224, 40%, 51%)  
hsl(224, 60%, 51%)  
hsl(224, 80%, 51%)  
hsl(224, 100%, 51%)  

#516cb5 Color Usage In CSS

 body {
    color: #516cb5;
    }
 p {
    color: rgb(81, 108, 181);
    }
 header {
    border-bottom:1px solid #516cb5;
    }
Recent Random Colors