Random Color Generator

#54149d Color

Color Codes
Hex Code #54149d
RGB Code rgb(84, 20, 157)
HSL Code hsl(268, 77%, 35%)

#54149d Color Syntax

rgb()

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

 main {
    background-color: rgb(84, 20, 157);
   }

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(268, 77%, 35%);
  }

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 #54149d

RGB Code Hex Code Preview
rgb(84, 20, 157, 10%) #54149d1a  
rgb(84, 20, 157, 20%) #54149d33  
rgb(84, 20, 157, 40%) #54149d4C  
rgb(84, 20, 157, 60%) #54149d99  
rgb(84, 20, 157, 80%) #54149dCC  
rgb(84, 20, 157, 100%) #54149dFF  

Saturated and desaturated colors of #54149d

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

#54149d Color Usage In CSS

 body {
    color: #54149d;
    }
 p {
    color: rgb(84, 20, 157);
    }
 header {
    border-bottom:1px solid #54149d;
    }
Recent Random Colors