Random Color Generator

#2d12f7 Color

Color Codes
Hex Code #2d12f7
RGB Code rgb(45, 18, 247)
HSL Code hsl(247, 93%, 52%)

#2d12f7 Color Syntax

rgb()

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

 main {
    background-color: rgb(45, 18, 247);
   }

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(247, 93%, 52%);
  }

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 #2d12f7

RGB Code Hex Code Preview
rgb(45, 18, 247, 10%) #2d12f71a  
rgb(45, 18, 247, 20%) #2d12f733  
rgb(45, 18, 247, 40%) #2d12f74C  
rgb(45, 18, 247, 60%) #2d12f799  
rgb(45, 18, 247, 80%) #2d12f7CC  
rgb(45, 18, 247, 100%) #2d12f7FF  

Saturated and desaturated colors of #2d12f7

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

#2d12f7 Color Usage In CSS

 body {
    color: #2d12f7;
    }
 p {
    color: rgb(45, 18, 247);
    }
 header {
    border-bottom:1px solid #2d12f7;
    }
Recent Random Colors