Random Color Generator

#42268b Color

Color Codes
Hex Code #42268b
RGB Code rgb(66, 38, 139)
HSL Code hsl(257, 57%, 35%)

#42268b Color Syntax

rgb()

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

 main {
    background-color: rgb(66, 38, 139);
   }

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(257, 57%, 35%);
  }

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 #42268b

RGB Code Hex Code Preview
rgb(66, 38, 139, 10%) #42268b1a  
rgb(66, 38, 139, 20%) #42268b33  
rgb(66, 38, 139, 40%) #42268b4C  
rgb(66, 38, 139, 60%) #42268b99  
rgb(66, 38, 139, 80%) #42268bCC  
rgb(66, 38, 139, 100%) #42268bFF  

Saturated and desaturated colors of #42268b

HSL Code Preview
hsl(257, 10%, 35%)  
hsl(257, 20%, 35%)  
hsl(257, 40%, 35%)  
hsl(257, 60%, 35%)  
hsl(257, 80%, 35%)  
hsl(257, 100%, 35%)  

#42268b Color Usage In CSS

 body {
    color: #42268b;
    }
 p {
    color: rgb(66, 38, 139);
    }
 header {
    border-bottom:1px solid #42268b;
    }
Recent Random Colors