Random Color Generator

#421493 Color

Color Codes
Hex Code #421493
RGB Code rgb(66, 20, 147)
HSL Code hsl(262, 76%, 33%)

#421493 Color Syntax

rgb()

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

 main {
    background-color: rgb(66, 20, 147);
   }

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(262, 76%, 33%);
  }

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 #421493

RGB Code Hex Code Preview
rgb(66, 20, 147, 10%) #4214931a  
rgb(66, 20, 147, 20%) #42149333  
rgb(66, 20, 147, 40%) #4214934C  
rgb(66, 20, 147, 60%) #42149399  
rgb(66, 20, 147, 80%) #421493CC  
rgb(66, 20, 147, 100%) #421493FF  

Saturated and desaturated colors of #421493

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

#421493 Color Usage In CSS

 body {
    color: #421493;
    }
 p {
    color: rgb(66, 20, 147);
    }
 header {
    border-bottom:1px solid #421493;
    }
Recent Random Colors