Random Color Generator

#6d0146 Color

Color Codes
Hex Code #6d0146
RGB Code rgb(109, 01, 70)
HSL Code hsl(322, 98%, 22%)

#6d0146 Color Syntax

rgb()

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

 main {
    background-color: rgb(109, 01, 70);
   }

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(322, 98%, 22%);
  }

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 #6d0146

RGB Code Hex Code Preview
rgb(109, 01, 70, 10%) #6d01461a  
rgb(109, 01, 70, 20%) #6d014633  
rgb(109, 01, 70, 40%) #6d01464C  
rgb(109, 01, 70, 60%) #6d014699  
rgb(109, 01, 70, 80%) #6d0146CC  
rgb(109, 01, 70, 100%) #6d0146FF  

Saturated and desaturated colors of #6d0146

HSL Code Preview
hsl(322, 10%, 22%)  
hsl(322, 20%, 22%)  
hsl(322, 40%, 22%)  
hsl(322, 60%, 22%)  
hsl(322, 80%, 22%)  
hsl(322, 100%, 22%)  

#6d0146 Color Usage In CSS

 body {
    color: #6d0146;
    }
 p {
    color: rgb(109, 01, 70);
    }
 header {
    border-bottom:1px solid #6d0146;
    }
Recent Random Colors