Random Color Generator

#ec04ad Color

Color Codes
Hex Code #ec04ad
RGB Code rgb(236, 04, 173)
HSL Code hsl(316, 97%, 47%)

#ec04ad Color Syntax

rgb()

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

 main {
    background-color: rgb(236, 04, 173);
   }

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, 97%, 47%);
  }

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

RGB Code Hex Code Preview
rgb(236, 04, 173, 10%) #ec04ad1a  
rgb(236, 04, 173, 20%) #ec04ad33  
rgb(236, 04, 173, 40%) #ec04ad4C  
rgb(236, 04, 173, 60%) #ec04ad99  
rgb(236, 04, 173, 80%) #ec04adCC  
rgb(236, 04, 173, 100%) #ec04adFF  

Saturated and desaturated colors of #ec04ad

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

#ec04ad Color Usage In CSS

 body {
    color: #ec04ad;
    }
 p {
    color: rgb(236, 04, 173);
    }
 header {
    border-bottom:1px solid #ec04ad;
    }
Recent Random Colors