Random Color Generator

#d21fdb Color

Color Codes
Hex Code #d21fdb
RGB Code rgb(210, 31, 219)
HSL Code hsl(297, 75%, 49%)

#d21fdb Color Syntax

rgb()

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

 main {
    background-color: rgb(210, 31, 219);
   }

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(297, 75%, 49%);
  }

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

RGB Code Hex Code Preview
rgb(210, 31, 219, 10%) #d21fdb1a  
rgb(210, 31, 219, 20%) #d21fdb33  
rgb(210, 31, 219, 40%) #d21fdb4C  
rgb(210, 31, 219, 60%) #d21fdb99  
rgb(210, 31, 219, 80%) #d21fdbCC  
rgb(210, 31, 219, 100%) #d21fdbFF  

Saturated and desaturated colors of #d21fdb

HSL Code Preview
hsl(297, 10%, 49%)  
hsl(297, 20%, 49%)  
hsl(297, 40%, 49%)  
hsl(297, 60%, 49%)  
hsl(297, 80%, 49%)  
hsl(297, 100%, 49%)  

#d21fdb Color Usage In CSS

 body {
    color: #d21fdb;
    }
 p {
    color: rgb(210, 31, 219);
    }
 header {
    border-bottom:1px solid #d21fdb;
    }
Recent Random Colors