Random Color Generator

#cb12ba Color

Color Codes
Hex Code #cb12ba
RGB Code rgb(203, 18, 186)
HSL Code hsl(306, 84%, 43%)

#cb12ba Color Syntax

rgb()

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

 main {
    background-color: rgb(203, 18, 186);
   }

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(306, 84%, 43%);
  }

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 #cb12ba

RGB Code Hex Code Preview
rgb(203, 18, 186, 10%) #cb12ba1a  
rgb(203, 18, 186, 20%) #cb12ba33  
rgb(203, 18, 186, 40%) #cb12ba4C  
rgb(203, 18, 186, 60%) #cb12ba99  
rgb(203, 18, 186, 80%) #cb12baCC  
rgb(203, 18, 186, 100%) #cb12baFF  

Saturated and desaturated colors of #cb12ba

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

#cb12ba Color Usage In CSS

 body {
    color: #cb12ba;
    }
 p {
    color: rgb(203, 18, 186);
    }
 header {
    border-bottom:1px solid #cb12ba;
    }
Recent Random Colors