Random Color Generator

#320a78 Color

Color Codes
Hex Code #320a78
RGB Code rgb(50, 10, 120)
HSL Code hsl(262, 85%, 25%)

#320a78 Color Syntax

rgb()

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

 main {
    background-color: rgb(50, 10, 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(262, 85%, 25%);
  }

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 #320a78

RGB Code Hex Code Preview
rgb(50, 10, 120, 10%) #320a781a  
rgb(50, 10, 120, 20%) #320a7833  
rgb(50, 10, 120, 40%) #320a784C  
rgb(50, 10, 120, 60%) #320a7899  
rgb(50, 10, 120, 80%) #320a78CC  
rgb(50, 10, 120, 100%) #320a78FF  

Saturated and desaturated colors of #320a78

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

#320a78 Color Usage In CSS

 body {
    color: #320a78;
    }
 p {
    color: rgb(50, 10, 120);
    }
 header {
    border-bottom:1px solid #320a78;
    }
Recent Random Colors