Random Color Generator

#320797 Color

Color Codes
Hex Code #320797
RGB Code rgb(50, 07, 151)
HSL Code hsl(258, 91%, 31%)

#320797 Color Syntax

rgb()

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

 main {
    background-color: rgb(50, 07, 151);
   }

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(258, 91%, 31%);
  }

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

RGB Code Hex Code Preview
rgb(50, 07, 151, 10%) #3207971a  
rgb(50, 07, 151, 20%) #32079733  
rgb(50, 07, 151, 40%) #3207974C  
rgb(50, 07, 151, 60%) #32079799  
rgb(50, 07, 151, 80%) #320797CC  
rgb(50, 07, 151, 100%) #320797FF  

Saturated and desaturated colors of #320797

HSL Code Preview
hsl(258, 10%, 31%)  
hsl(258, 20%, 31%)  
hsl(258, 40%, 31%)  
hsl(258, 60%, 31%)  
hsl(258, 80%, 31%)  
hsl(258, 100%, 31%)  

#320797 Color Usage In CSS

 body {
    color: #320797;
    }
 p {
    color: rgb(50, 07, 151);
    }
 header {
    border-bottom:1px solid #320797;
    }
Recent Random Colors