Random Color Generator

#403f78 Color

Color Codes
Hex Code #403f78
RGB Code rgb(64, 63, 120)
HSL Code hsl(241, 31%, 36%)

#403f78 Color Syntax

rgb()

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

 main {
    background-color: rgb(64, 63, 120);
   }

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(241, 31%, 36%);
  }

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 #403f78

RGB Code Hex Code Preview
rgb(64, 63, 120, 10%) #403f781a  
rgb(64, 63, 120, 20%) #403f7833  
rgb(64, 63, 120, 40%) #403f784C  
rgb(64, 63, 120, 60%) #403f7899  
rgb(64, 63, 120, 80%) #403f78CC  
rgb(64, 63, 120, 100%) #403f78FF  

Saturated and desaturated colors of #403f78

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

#403f78 Color Usage In CSS

 body {
    color: #403f78;
    }
 p {
    color: rgb(64, 63, 120);
    }
 header {
    border-bottom:1px solid #403f78;
    }
Recent Random Colors