Random Color Generator

#6731ab Color

Color Codes
Hex Code #6731ab
RGB Code rgb(103, 49, 171)
HSL Code hsl(267, 55%, 43%)

#6731ab Color Syntax

rgb()

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

 main {
    background-color: rgb(103, 49, 171);
   }

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(267, 55%, 43%);
  }

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 #6731ab

RGB Code Hex Code Preview
rgb(103, 49, 171, 10%) #6731ab1a  
rgb(103, 49, 171, 20%) #6731ab33  
rgb(103, 49, 171, 40%) #6731ab4C  
rgb(103, 49, 171, 60%) #6731ab99  
rgb(103, 49, 171, 80%) #6731abCC  
rgb(103, 49, 171, 100%) #6731abFF  

Saturated and desaturated colors of #6731ab

HSL Code Preview
hsl(267, 10%, 43%)  
hsl(267, 20%, 43%)  
hsl(267, 40%, 43%)  
hsl(267, 60%, 43%)  
hsl(267, 80%, 43%)  
hsl(267, 100%, 43%)  

#6731ab Color Usage In CSS

 body {
    color: #6731ab;
    }
 p {
    color: rgb(103, 49, 171);
    }
 header {
    border-bottom:1px solid #6731ab;
    }
Recent Random Colors