Random Color Generator

#6a6cb9 Color

Color Codes
Hex Code #6a6cb9
RGB Code rgb(106, 108, 185)
HSL Code hsl(238, 36%, 57%)

#6a6cb9 Color Syntax

rgb()

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

 main {
    background-color: rgb(106, 108, 185);
   }

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(238, 36%, 57%);
  }

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 #6a6cb9

RGB Code Hex Code Preview
rgb(106, 108, 185, 10%) #6a6cb91a  
rgb(106, 108, 185, 20%) #6a6cb933  
rgb(106, 108, 185, 40%) #6a6cb94C  
rgb(106, 108, 185, 60%) #6a6cb999  
rgb(106, 108, 185, 80%) #6a6cb9CC  
rgb(106, 108, 185, 100%) #6a6cb9FF  

Saturated and desaturated colors of #6a6cb9

HSL Code Preview
hsl(238, 10%, 57%)  
hsl(238, 20%, 57%)  
hsl(238, 40%, 57%)  
hsl(238, 60%, 57%)  
hsl(238, 80%, 57%)  
hsl(238, 100%, 57%)  

#6a6cb9 Color Usage In CSS

 body {
    color: #6a6cb9;
    }
 p {
    color: rgb(106, 108, 185);
    }
 header {
    border-bottom:1px solid #6a6cb9;
    }
Recent Random Colors