Random Color Generator

#d52dfb Color

Color Codes
Hex Code #d52dfb
RGB Code rgb(213, 45, 251)
HSL Code hsl(289, 96%, 58%)

#d52dfb Color Syntax

rgb()

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

 main {
    background-color: rgb(213, 45, 251);
   }

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(289, 96%, 58%);
  }

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

RGB Code Hex Code Preview
rgb(213, 45, 251, 10%) #d52dfb1a  
rgb(213, 45, 251, 20%) #d52dfb33  
rgb(213, 45, 251, 40%) #d52dfb4C  
rgb(213, 45, 251, 60%) #d52dfb99  
rgb(213, 45, 251, 80%) #d52dfbCC  
rgb(213, 45, 251, 100%) #d52dfbFF  

Saturated and desaturated colors of #d52dfb

HSL Code Preview
hsl(289, 10%, 58%)  
hsl(289, 20%, 58%)  
hsl(289, 40%, 58%)  
hsl(289, 60%, 58%)  
hsl(289, 80%, 58%)  
hsl(289, 100%, 58%)  

#d52dfb Color Usage In CSS

 body {
    color: #d52dfb;
    }
 p {
    color: rgb(213, 45, 251);
    }
 header {
    border-bottom:1px solid #d52dfb;
    }
Recent Random Colors