Random Color Generator

#5d267e Color

Color Codes
Hex Code #5d267e
RGB Code rgb(93, 38, 126)
HSL Code hsl(278, 54%, 32%)

#5d267e Color Syntax

rgb()

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

 main {
    background-color: rgb(93, 38, 126);
   }

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(278, 54%, 32%);
  }

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 #5d267e

RGB Code Hex Code Preview
rgb(93, 38, 126, 10%) #5d267e1a  
rgb(93, 38, 126, 20%) #5d267e33  
rgb(93, 38, 126, 40%) #5d267e4C  
rgb(93, 38, 126, 60%) #5d267e99  
rgb(93, 38, 126, 80%) #5d267eCC  
rgb(93, 38, 126, 100%) #5d267eFF  

Saturated and desaturated colors of #5d267e

HSL Code Preview
hsl(278, 10%, 32%)  
hsl(278, 20%, 32%)  
hsl(278, 40%, 32%)  
hsl(278, 60%, 32%)  
hsl(278, 80%, 32%)  
hsl(278, 100%, 32%)  

#5d267e Color Usage In CSS

 body {
    color: #5d267e;
    }
 p {
    color: rgb(93, 38, 126);
    }
 header {
    border-bottom:1px solid #5d267e;
    }
Recent Random Colors