Random Color Generator

#d827f5 Color

Color Codes
Hex Code #d827f5
RGB Code rgb(216, 39, 245)
HSL Code hsl(292, 91%, 56%)

#d827f5 Color Syntax

rgb()

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

 main {
    background-color: rgb(216, 39, 245);
   }

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(292, 91%, 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 #d827f5

RGB Code Hex Code Preview
rgb(216, 39, 245, 10%) #d827f51a  
rgb(216, 39, 245, 20%) #d827f533  
rgb(216, 39, 245, 40%) #d827f54C  
rgb(216, 39, 245, 60%) #d827f599  
rgb(216, 39, 245, 80%) #d827f5CC  
rgb(216, 39, 245, 100%) #d827f5FF  

Saturated and desaturated colors of #d827f5

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

#d827f5 Color Usage In CSS

 body {
    color: #d827f5;
    }
 p {
    color: rgb(216, 39, 245);
    }
 header {
    border-bottom:1px solid #d827f5;
    }
Recent Random Colors