Random Color Generator

#28017a Color

Color Codes
Hex Code #28017a
RGB Code rgb(40, 01, 122)
HSL Code hsl(259, 98%, 24%)

#28017a Color Syntax

rgb()

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

 main {
    background-color: rgb(40, 01, 122);
   }

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(259, 98%, 24%);
  }

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 #28017a

RGB Code Hex Code Preview
rgb(40, 01, 122, 10%) #28017a1a  
rgb(40, 01, 122, 20%) #28017a33  
rgb(40, 01, 122, 40%) #28017a4C  
rgb(40, 01, 122, 60%) #28017a99  
rgb(40, 01, 122, 80%) #28017aCC  
rgb(40, 01, 122, 100%) #28017aFF  

Saturated and desaturated colors of #28017a

HSL Code Preview
hsl(259, 10%, 24%)  
hsl(259, 20%, 24%)  
hsl(259, 40%, 24%)  
hsl(259, 60%, 24%)  
hsl(259, 80%, 24%)  
hsl(259, 100%, 24%)  

#28017a Color Usage In CSS

 body {
    color: #28017a;
    }
 p {
    color: rgb(40, 01, 122);
    }
 header {
    border-bottom:1px solid #28017a;
    }
Recent Random Colors