Random Color Generator

#ca7ecd Color

Color Codes
Hex Code #ca7ecd
RGB Code rgb(202, 126, 205)
HSL Code hsl(298, 44%, 65%)

#ca7ecd Color Syntax

rgb()

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

 main {
    background-color: rgb(202, 126, 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(298, 44%, 65%);
  }

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 #ca7ecd

RGB Code Hex Code Preview
rgb(202, 126, 205, 10%) #ca7ecd1a  
rgb(202, 126, 205, 20%) #ca7ecd33  
rgb(202, 126, 205, 40%) #ca7ecd4C  
rgb(202, 126, 205, 60%) #ca7ecd99  
rgb(202, 126, 205, 80%) #ca7ecdCC  
rgb(202, 126, 205, 100%) #ca7ecdFF  

Saturated and desaturated colors of #ca7ecd

HSL Code Preview
hsl(298, 10%, 65%)  
hsl(298, 20%, 65%)  
hsl(298, 40%, 65%)  
hsl(298, 60%, 65%)  
hsl(298, 80%, 65%)  
hsl(298, 100%, 65%)  

#ca7ecd Color Usage In CSS

 body {
    color: #ca7ecd;
    }
 p {
    color: rgb(202, 126, 205);
    }
 header {
    border-bottom:1px solid #ca7ecd;
    }
Recent Random Colors