Random Color Generator

#516ad5 Color

Color Codes
Hex Code #516ad5
RGB Code rgb(81, 106, 213)
HSL Code hsl(229, 61%, 58%)

#516ad5 Color Syntax

rgb()

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

 main {
    background-color: rgb(81, 106, 213);
   }

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(229, 61%, 58%);
  }

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

RGB Code Hex Code Preview
rgb(81, 106, 213, 10%) #516ad51a  
rgb(81, 106, 213, 20%) #516ad533  
rgb(81, 106, 213, 40%) #516ad54C  
rgb(81, 106, 213, 60%) #516ad599  
rgb(81, 106, 213, 80%) #516ad5CC  
rgb(81, 106, 213, 100%) #516ad5FF  

Saturated and desaturated colors of #516ad5

HSL Code Preview
hsl(229, 10%, 58%)  
hsl(229, 20%, 58%)  
hsl(229, 40%, 58%)  
hsl(229, 60%, 58%)  
hsl(229, 80%, 58%)  
hsl(229, 100%, 58%)  

#516ad5 Color Usage In CSS

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