Random Color Generator

#8021dd Color

Color Codes
Hex Code #8021dd
RGB Code rgb(128, 33, 221)
HSL Code hsl(270, 74%, 50%)

#8021dd Color Syntax

rgb()

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

 main {
    background-color: rgb(128, 33, 221);
   }

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(270, 74%, 50%);
  }

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 #8021dd

RGB Code Hex Code Preview
rgb(128, 33, 221, 10%) #8021dd1a  
rgb(128, 33, 221, 20%) #8021dd33  
rgb(128, 33, 221, 40%) #8021dd4C  
rgb(128, 33, 221, 60%) #8021dd99  
rgb(128, 33, 221, 80%) #8021ddCC  
rgb(128, 33, 221, 100%) #8021ddFF  

Saturated and desaturated colors of #8021dd

HSL Code Preview
hsl(270, 10%, 50%)  
hsl(270, 20%, 50%)  
hsl(270, 40%, 50%)  
hsl(270, 60%, 50%)  
hsl(270, 80%, 50%)  
hsl(270, 100%, 50%)  

#8021dd Color Usage In CSS

 body {
    color: #8021dd;
    }
 p {
    color: rgb(128, 33, 221);
    }
 header {
    border-bottom:1px solid #8021dd;
    }
Recent Random Colors