Random Color Generator

#d40f6a Color

Color Codes
Hex Code #d40f6a
RGB Code rgb(212, 15, 106)
HSL Code hsl(332, 87%, 45%)

#d40f6a Color Syntax

rgb()

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

 main {
    background-color: rgb(212, 15, 106);
   }

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(332, 87%, 45%);
  }

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

RGB Code Hex Code Preview
rgb(212, 15, 106, 10%) #d40f6a1a  
rgb(212, 15, 106, 20%) #d40f6a33  
rgb(212, 15, 106, 40%) #d40f6a4C  
rgb(212, 15, 106, 60%) #d40f6a99  
rgb(212, 15, 106, 80%) #d40f6aCC  
rgb(212, 15, 106, 100%) #d40f6aFF  

Saturated and desaturated colors of #d40f6a

HSL Code Preview
hsl(332, 10%, 45%)  
hsl(332, 20%, 45%)  
hsl(332, 40%, 45%)  
hsl(332, 60%, 45%)  
hsl(332, 80%, 45%)  
hsl(332, 100%, 45%)  

#d40f6a Color Usage In CSS

 body {
    color: #d40f6a;
    }
 p {
    color: rgb(212, 15, 106);
    }
 header {
    border-bottom:1px solid #d40f6a;
    }
Recent Random Colors