Random Color Generator

#511b14 Color

Color Codes
Hex Code #511b14
RGB Code rgb(81, 27, 20)
HSL Code hsl(7, 60%, 20%)

#511b14 Color Syntax

rgb()

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

 main {
    background-color: rgb(81, 27, 20);
   }

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(7, 60%, 20%);
  }

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 #511b14

RGB Code Hex Code Preview
rgb(81, 27, 20, 10%) #511b141a  
rgb(81, 27, 20, 20%) #511b1433  
rgb(81, 27, 20, 40%) #511b144C  
rgb(81, 27, 20, 60%) #511b1499  
rgb(81, 27, 20, 80%) #511b14CC  
rgb(81, 27, 20, 100%) #511b14FF  

Saturated and desaturated colors of #511b14

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

#511b14 Color Usage In CSS

 body {
    color: #511b14;
    }
 p {
    color: rgb(81, 27, 20);
    }
 header {
    border-bottom:1px solid #511b14;
    }
Recent Random Colors