Random Color Generator

#cf2ea4 Color

Color Codes
Hex Code #cf2ea4
RGB Code rgb(207, 46, 164)
HSL Code hsl(316, 64%, 50%)

#cf2ea4 Color Syntax

rgb()

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

 main {
    background-color: rgb(207, 46, 164);
   }

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(316, 64%, 50%);
  }

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

RGB Code Hex Code Preview
rgb(207, 46, 164, 10%) #cf2ea41a  
rgb(207, 46, 164, 20%) #cf2ea433  
rgb(207, 46, 164, 40%) #cf2ea44C  
rgb(207, 46, 164, 60%) #cf2ea499  
rgb(207, 46, 164, 80%) #cf2ea4CC  
rgb(207, 46, 164, 100%) #cf2ea4FF  

Saturated and desaturated colors of #cf2ea4

HSL Code Preview
hsl(316, 10%, 50%)  
hsl(316, 20%, 50%)  
hsl(316, 40%, 50%)  
hsl(316, 60%, 50%)  
hsl(316, 80%, 50%)  
hsl(316, 100%, 50%)  

#cf2ea4 Color Usage In CSS

 body {
    color: #cf2ea4;
    }
 p {
    color: rgb(207, 46, 164);
    }
 header {
    border-bottom:1px solid #cf2ea4;
    }
Recent Random Colors