Random Color Generator

#51358c Color

Color Codes
Hex Code #51358c
RGB Code rgb(81, 53, 140)
HSL Code hsl(259, 45%, 38%)

#51358c Color Syntax

rgb()

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

 main {
    background-color: rgb(81, 53, 140);
   }

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(259, 45%, 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 #51358c

RGB Code Hex Code Preview
rgb(81, 53, 140, 10%) #51358c1a  
rgb(81, 53, 140, 20%) #51358c33  
rgb(81, 53, 140, 40%) #51358c4C  
rgb(81, 53, 140, 60%) #51358c99  
rgb(81, 53, 140, 80%) #51358cCC  
rgb(81, 53, 140, 100%) #51358cFF  

Saturated and desaturated colors of #51358c

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

#51358c Color Usage In CSS

 body {
    color: #51358c;
    }
 p {
    color: rgb(81, 53, 140);
    }
 header {
    border-bottom:1px solid #51358c;
    }
Recent Random Colors