Random Color Generator

#802fcd Color

Color Codes
Hex Code #802fcd
RGB Code rgb(128, 47, 205)
HSL Code hsl(271, 63%, 49%)

#802fcd Color Syntax

rgb()

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

 main {
    background-color: rgb(128, 47, 205);
   }

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(271, 63%, 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 #802fcd

RGB Code Hex Code Preview
rgb(128, 47, 205, 10%) #802fcd1a  
rgb(128, 47, 205, 20%) #802fcd33  
rgb(128, 47, 205, 40%) #802fcd4C  
rgb(128, 47, 205, 60%) #802fcd99  
rgb(128, 47, 205, 80%) #802fcdCC  
rgb(128, 47, 205, 100%) #802fcdFF  

Saturated and desaturated colors of #802fcd

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

#802fcd Color Usage In CSS

 body {
    color: #802fcd;
    }
 p {
    color: rgb(128, 47, 205);
    }
 header {
    border-bottom:1px solid #802fcd;
    }
Recent Random Colors