Random Color Generator

#664ddd Color

Color Codes
Hex Code #664ddd
RGB Code rgb(102, 77, 221)
HSL Code hsl(250, 68%, 58%)

#664ddd Color Syntax

rgb()

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

 main {
    background-color: rgb(102, 77, 221);
   }

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, 68%, 58%);
  }

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 #664ddd

RGB Code Hex Code Preview
rgb(102, 77, 221, 10%) #664ddd1a  
rgb(102, 77, 221, 20%) #664ddd33  
rgb(102, 77, 221, 40%) #664ddd4C  
rgb(102, 77, 221, 60%) #664ddd99  
rgb(102, 77, 221, 80%) #664dddCC  
rgb(102, 77, 221, 100%) #664dddFF  

Saturated and desaturated colors of #664ddd

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

#664ddd Color Usage In CSS

 body {
    color: #664ddd;
    }
 p {
    color: rgb(102, 77, 221);
    }
 header {
    border-bottom:1px solid #664ddd;
    }
Recent Random Colors