Random Color Generator

#402a77 Color

Color Codes
Hex Code #402a77
RGB Code rgb(64, 42, 119)
HSL Code hsl(257, 48%, 32%)

#402a77 Color Syntax

rgb()

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

 main {
    background-color: rgb(64, 42, 119);
   }

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(257, 48%, 32%);
  }

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 #402a77

RGB Code Hex Code Preview
rgb(64, 42, 119, 10%) #402a771a  
rgb(64, 42, 119, 20%) #402a7733  
rgb(64, 42, 119, 40%) #402a774C  
rgb(64, 42, 119, 60%) #402a7799  
rgb(64, 42, 119, 80%) #402a77CC  
rgb(64, 42, 119, 100%) #402a77FF  

Saturated and desaturated colors of #402a77

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

#402a77 Color Usage In CSS

 body {
    color: #402a77;
    }
 p {
    color: rgb(64, 42, 119);
    }
 header {
    border-bottom:1px solid #402a77;
    }
Recent Random Colors