Random Color Generator

#514b80 Color

Color Codes
Hex Code #514b80
RGB Code rgb(81, 75, 128)
HSL Code hsl(247, 26%, 40%)

#514b80 Color Syntax

rgb()

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

 main {
    background-color: rgb(81, 75, 128);
   }

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(247, 26%, 40%);
  }

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 #514b80

RGB Code Hex Code Preview
rgb(81, 75, 128, 10%) #514b801a  
rgb(81, 75, 128, 20%) #514b8033  
rgb(81, 75, 128, 40%) #514b804C  
rgb(81, 75, 128, 60%) #514b8099  
rgb(81, 75, 128, 80%) #514b80CC  
rgb(81, 75, 128, 100%) #514b80FF  

Saturated and desaturated colors of #514b80

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

#514b80 Color Usage In CSS

 body {
    color: #514b80;
    }
 p {
    color: rgb(81, 75, 128);
    }
 header {
    border-bottom:1px solid #514b80;
    }
Recent Random Colors