Random Color Generator

#682d9b Color

Color Codes
Hex Code #682d9b
RGB Code rgb(104, 45, 155)
HSL Code hsl(272, 55%, 39%)

#682d9b Color Syntax

rgb()

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

 main {
    background-color: rgb(104, 45, 155);
   }

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(272, 55%, 39%);
  }

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 #682d9b

RGB Code Hex Code Preview
rgb(104, 45, 155, 10%) #682d9b1a  
rgb(104, 45, 155, 20%) #682d9b33  
rgb(104, 45, 155, 40%) #682d9b4C  
rgb(104, 45, 155, 60%) #682d9b99  
rgb(104, 45, 155, 80%) #682d9bCC  
rgb(104, 45, 155, 100%) #682d9bFF  

Saturated and desaturated colors of #682d9b

HSL Code Preview
hsl(272, 10%, 39%)  
hsl(272, 20%, 39%)  
hsl(272, 40%, 39%)  
hsl(272, 60%, 39%)  
hsl(272, 80%, 39%)  
hsl(272, 100%, 39%)  

#682d9b Color Usage In CSS

 body {
    color: #682d9b;
    }
 p {
    color: rgb(104, 45, 155);
    }
 header {
    border-bottom:1px solid #682d9b;
    }
Recent Random Colors