Random Color Generator

#502ca7 Color

Color Codes
Hex Code #502ca7
RGB Code rgb(80, 44, 167)
HSL Code hsl(258, 58%, 41%)

#502ca7 Color Syntax

rgb()

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

 main {
    background-color: rgb(80, 44, 167);
   }

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(258, 58%, 41%);
  }

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 #502ca7

RGB Code Hex Code Preview
rgb(80, 44, 167, 10%) #502ca71a  
rgb(80, 44, 167, 20%) #502ca733  
rgb(80, 44, 167, 40%) #502ca74C  
rgb(80, 44, 167, 60%) #502ca799  
rgb(80, 44, 167, 80%) #502ca7CC  
rgb(80, 44, 167, 100%) #502ca7FF  

Saturated and desaturated colors of #502ca7

HSL Code Preview
hsl(258, 10%, 41%)  
hsl(258, 20%, 41%)  
hsl(258, 40%, 41%)  
hsl(258, 60%, 41%)  
hsl(258, 80%, 41%)  
hsl(258, 100%, 41%)  

#502ca7 Color Usage In CSS

 body {
    color: #502ca7;
    }
 p {
    color: rgb(80, 44, 167);
    }
 header {
    border-bottom:1px solid #502ca7;
    }
Recent Random Colors