Random Color Generator

#cd0f8a Color

Color Codes
Hex Code #cd0f8a
RGB Code rgb(205, 15, 138)
HSL Code hsl(321, 86%, 43%)

#cd0f8a Color Syntax

rgb()

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

 main {
    background-color: rgb(205, 15, 138);
   }

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(321, 86%, 43%);
  }

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

RGB Code Hex Code Preview
rgb(205, 15, 138, 10%) #cd0f8a1a  
rgb(205, 15, 138, 20%) #cd0f8a33  
rgb(205, 15, 138, 40%) #cd0f8a4C  
rgb(205, 15, 138, 60%) #cd0f8a99  
rgb(205, 15, 138, 80%) #cd0f8aCC  
rgb(205, 15, 138, 100%) #cd0f8aFF  

Saturated and desaturated colors of #cd0f8a

HSL Code Preview
hsl(321, 10%, 43%)  
hsl(321, 20%, 43%)  
hsl(321, 40%, 43%)  
hsl(321, 60%, 43%)  
hsl(321, 80%, 43%)  
hsl(321, 100%, 43%)  

#cd0f8a Color Usage In CSS

 body {
    color: #cd0f8a;
    }
 p {
    color: rgb(205, 15, 138);
    }
 header {
    border-bottom:1px solid #cd0f8a;
    }
Recent Random Colors