Random Color Generator

#a558ca Color

Color Codes
Hex Code #a558ca
RGB Code rgb(165, 88, 202)
HSL Code hsl(281, 52%, 57%)

#a558ca Color Syntax

rgb()

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

 main {
    background-color: rgb(165, 88, 202);
   }

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(281, 52%, 57%);
  }

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

RGB Code Hex Code Preview
rgb(165, 88, 202, 10%) #a558ca1a  
rgb(165, 88, 202, 20%) #a558ca33  
rgb(165, 88, 202, 40%) #a558ca4C  
rgb(165, 88, 202, 60%) #a558ca99  
rgb(165, 88, 202, 80%) #a558caCC  
rgb(165, 88, 202, 100%) #a558caFF  

Saturated and desaturated colors of #a558ca

HSL Code Preview
hsl(281, 10%, 57%)  
hsl(281, 20%, 57%)  
hsl(281, 40%, 57%)  
hsl(281, 60%, 57%)  
hsl(281, 80%, 57%)  
hsl(281, 100%, 57%)  

#a558ca Color Usage In CSS

 body {
    color: #a558ca;
    }
 p {
    color: rgb(165, 88, 202);
    }
 header {
    border-bottom:1px solid #a558ca;
    }
Recent Random Colors