Random Color Generator

#da42e2 Color

Color Codes
Hex Code #da42e2
RGB Code rgb(218, 66, 226)
HSL Code hsl(297, 73%, 57%)

#da42e2 Color Syntax

rgb()

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

 main {
    background-color: rgb(218, 66, 226);
   }

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(297, 73%, 57%);
  }

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

RGB Code Hex Code Preview
rgb(218, 66, 226, 10%) #da42e21a  
rgb(218, 66, 226, 20%) #da42e233  
rgb(218, 66, 226, 40%) #da42e24C  
rgb(218, 66, 226, 60%) #da42e299  
rgb(218, 66, 226, 80%) #da42e2CC  
rgb(218, 66, 226, 100%) #da42e2FF  

Saturated and desaturated colors of #da42e2

HSL Code Preview
hsl(297, 10%, 57%)  
hsl(297, 20%, 57%)  
hsl(297, 40%, 57%)  
hsl(297, 60%, 57%)  
hsl(297, 80%, 57%)  
hsl(297, 100%, 57%)  

#da42e2 Color Usage In CSS

 body {
    color: #da42e2;
    }
 p {
    color: rgb(218, 66, 226);
    }
 header {
    border-bottom:1px solid #da42e2;
    }
Recent Random Colors