Random Color Generator

#d212fb Color

Color Codes
Hex Code #d212fb
RGB Code rgb(210, 18, 251)
HSL Code hsl(289, 97%, 53%)

#d212fb Color Syntax

rgb()

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

 main {
    background-color: rgb(210, 18, 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, 97%, 53%);
  }

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

RGB Code Hex Code Preview
rgb(210, 18, 251, 10%) #d212fb1a  
rgb(210, 18, 251, 20%) #d212fb33  
rgb(210, 18, 251, 40%) #d212fb4C  
rgb(210, 18, 251, 60%) #d212fb99  
rgb(210, 18, 251, 80%) #d212fbCC  
rgb(210, 18, 251, 100%) #d212fbFF  

Saturated and desaturated colors of #d212fb

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

#d212fb Color Usage In CSS

 body {
    color: #d212fb;
    }
 p {
    color: rgb(210, 18, 251);
    }
 header {
    border-bottom:1px solid #d212fb;
    }
Recent Random Colors