Random Color Generator

#831ba4 Color

Color Codes
Hex Code #831ba4
RGB Code rgb(131, 27, 164)
HSL Code hsl(286, 72%, 37%)

#831ba4 Color Syntax

rgb()

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

 main {
    background-color: rgb(131, 27, 164);
   }

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(286, 72%, 37%);
  }

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 #831ba4

RGB Code Hex Code Preview
rgb(131, 27, 164, 10%) #831ba41a  
rgb(131, 27, 164, 20%) #831ba433  
rgb(131, 27, 164, 40%) #831ba44C  
rgb(131, 27, 164, 60%) #831ba499  
rgb(131, 27, 164, 80%) #831ba4CC  
rgb(131, 27, 164, 100%) #831ba4FF  

Saturated and desaturated colors of #831ba4

HSL Code Preview
hsl(286, 10%, 37%)  
hsl(286, 20%, 37%)  
hsl(286, 40%, 37%)  
hsl(286, 60%, 37%)  
hsl(286, 80%, 37%)  
hsl(286, 100%, 37%)  

#831ba4 Color Usage In CSS

 body {
    color: #831ba4;
    }
 p {
    color: rgb(131, 27, 164);
    }
 header {
    border-bottom:1px solid #831ba4;
    }
Recent Random Colors