Random Color Generator

#462ad4 Color

Color Codes
Hex Code #462ad4
RGB Code rgb(70, 42, 212)
HSL Code hsl(250, 67%, 50%)

#462ad4 Color Syntax

rgb()

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

 main {
    background-color: rgb(70, 42, 212);
   }

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(250, 67%, 50%);
  }

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 #462ad4

RGB Code Hex Code Preview
rgb(70, 42, 212, 10%) #462ad41a  
rgb(70, 42, 212, 20%) #462ad433  
rgb(70, 42, 212, 40%) #462ad44C  
rgb(70, 42, 212, 60%) #462ad499  
rgb(70, 42, 212, 80%) #462ad4CC  
rgb(70, 42, 212, 100%) #462ad4FF  

Saturated and desaturated colors of #462ad4

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

#462ad4 Color Usage In CSS

 body {
    color: #462ad4;
    }
 p {
    color: rgb(70, 42, 212);
    }
 header {
    border-bottom:1px solid #462ad4;
    }
Recent Random Colors