Random Color Generator

#7a0230 Color

Color Codes
Hex Code #7a0230
RGB Code rgb(122, 02, 48)
HSL Code hsl(337, 97%, 24%)

#7a0230 Color Syntax

rgb()

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

 main {
    background-color: rgb(122, 02, 48);
   }

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(337, 97%, 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 #7a0230

RGB Code Hex Code Preview
rgb(122, 02, 48, 10%) #7a02301a  
rgb(122, 02, 48, 20%) #7a023033  
rgb(122, 02, 48, 40%) #7a02304C  
rgb(122, 02, 48, 60%) #7a023099  
rgb(122, 02, 48, 80%) #7a0230CC  
rgb(122, 02, 48, 100%) #7a0230FF  

Saturated and desaturated colors of #7a0230

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

#7a0230 Color Usage In CSS

 body {
    color: #7a0230;
    }
 p {
    color: rgb(122, 02, 48);
    }
 header {
    border-bottom:1px solid #7a0230;
    }
Recent Random Colors