Random Color Generator

#d5a1df Color

Color Codes
Hex Code #d5a1df
RGB Code rgb(213, 161, 223)
HSL Code hsl(290, 49%, 75%)

#d5a1df Color Syntax

rgb()

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

 main {
    background-color: rgb(213, 161, 223);
   }

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

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

RGB Code Hex Code Preview
rgb(213, 161, 223, 10%) #d5a1df1a  
rgb(213, 161, 223, 20%) #d5a1df33  
rgb(213, 161, 223, 40%) #d5a1df4C  
rgb(213, 161, 223, 60%) #d5a1df99  
rgb(213, 161, 223, 80%) #d5a1dfCC  
rgb(213, 161, 223, 100%) #d5a1dfFF  

Saturated and desaturated colors of #d5a1df

HSL Code Preview
hsl(290, 10%, 75%)  
hsl(290, 20%, 75%)  
hsl(290, 40%, 75%)  
hsl(290, 60%, 75%)  
hsl(290, 80%, 75%)  
hsl(290, 100%, 75%)  

#d5a1df Color Usage In CSS

 body {
    color: #d5a1df;
    }
 p {
    color: rgb(213, 161, 223);
    }
 header {
    border-bottom:1px solid #d5a1df;
    }
Recent Random Colors