Random Color Generator

#d42566 Color

Color Codes
Hex Code #d42566
RGB Code rgb(212, 37, 102)
HSL Code hsl(338, 70%, 49%)

#d42566 Color Syntax

rgb()

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

 main {
    background-color: rgb(212, 37, 102);
   }

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(338, 70%, 49%);
  }

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

RGB Code Hex Code Preview
rgb(212, 37, 102, 10%) #d425661a  
rgb(212, 37, 102, 20%) #d4256633  
rgb(212, 37, 102, 40%) #d425664C  
rgb(212, 37, 102, 60%) #d4256699  
rgb(212, 37, 102, 80%) #d42566CC  
rgb(212, 37, 102, 100%) #d42566FF  

Saturated and desaturated colors of #d42566

HSL Code Preview
hsl(338, 10%, 49%)  
hsl(338, 20%, 49%)  
hsl(338, 40%, 49%)  
hsl(338, 60%, 49%)  
hsl(338, 80%, 49%)  
hsl(338, 100%, 49%)  

#d42566 Color Usage In CSS

 body {
    color: #d42566;
    }
 p {
    color: rgb(212, 37, 102);
    }
 header {
    border-bottom:1px solid #d42566;
    }
Recent Random Colors