Random Color Generator

#6a1ecc Color

Color Codes
Hex Code #6a1ecc
RGB Code rgb(106, 30, 204)
HSL Code hsl(266, 74%, 46%)

#6a1ecc Color Syntax

rgb()

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

 main {
    background-color: rgb(106, 30, 204);
   }

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(266, 74%, 46%);
  }

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

RGB Code Hex Code Preview
rgb(106, 30, 204, 10%) #6a1ecc1a  
rgb(106, 30, 204, 20%) #6a1ecc33  
rgb(106, 30, 204, 40%) #6a1ecc4C  
rgb(106, 30, 204, 60%) #6a1ecc99  
rgb(106, 30, 204, 80%) #6a1eccCC  
rgb(106, 30, 204, 100%) #6a1eccFF  

Saturated and desaturated colors of #6a1ecc

HSL Code Preview
hsl(266, 10%, 46%)  
hsl(266, 20%, 46%)  
hsl(266, 40%, 46%)  
hsl(266, 60%, 46%)  
hsl(266, 80%, 46%)  
hsl(266, 100%, 46%)  

#6a1ecc Color Usage In CSS

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