Random Color Generator

#6651cd Color

Color Codes
Hex Code #6651cd
RGB Code rgb(102, 81, 205)
HSL Code hsl(250, 55%, 56%)

#6651cd Color Syntax

rgb()

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

 main {
    background-color: rgb(102, 81, 205);
   }

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(250, 55%, 56%);
  }

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 #6651cd

RGB Code Hex Code Preview
rgb(102, 81, 205, 10%) #6651cd1a  
rgb(102, 81, 205, 20%) #6651cd33  
rgb(102, 81, 205, 40%) #6651cd4C  
rgb(102, 81, 205, 60%) #6651cd99  
rgb(102, 81, 205, 80%) #6651cdCC  
rgb(102, 81, 205, 100%) #6651cdFF  

Saturated and desaturated colors of #6651cd

HSL Code Preview
hsl(250, 10%, 56%)  
hsl(250, 20%, 56%)  
hsl(250, 40%, 56%)  
hsl(250, 60%, 56%)  
hsl(250, 80%, 56%)  
hsl(250, 100%, 56%)  

#6651cd Color Usage In CSS

 body {
    color: #6651cd;
    }
 p {
    color: rgb(102, 81, 205);
    }
 header {
    border-bottom:1px solid #6651cd;
    }
Recent Random Colors