Random Color Generator

#5f1f2f Color

Color Codes
Hex Code #5f1f2f
RGB Code rgb(95, 31, 47)
HSL Code hsl(345, 51%, 25%)

#5f1f2f Color Syntax

rgb()

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

 main {
    background-color: rgb(95, 31, 47);
   }

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(345, 51%, 25%);
  }

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 #5f1f2f

RGB Code Hex Code Preview
rgb(95, 31, 47, 10%) #5f1f2f1a  
rgb(95, 31, 47, 20%) #5f1f2f33  
rgb(95, 31, 47, 40%) #5f1f2f4C  
rgb(95, 31, 47, 60%) #5f1f2f99  
rgb(95, 31, 47, 80%) #5f1f2fCC  
rgb(95, 31, 47, 100%) #5f1f2fFF  

Saturated and desaturated colors of #5f1f2f

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

#5f1f2f Color Usage In CSS

 body {
    color: #5f1f2f;
    }
 p {
    color: rgb(95, 31, 47);
    }
 header {
    border-bottom:1px solid #5f1f2f;
    }
Recent Random Colors